Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge #93: Introduce SPDX license identifiers
Browse files Browse the repository at this point in the history
bb5b5cf Introduce SPDX license identifiers (Tobin C. Harding)

Pull request description:

  Licenses are boring as hell, so is are all the comments at the top of each file. This patch makes no comment on the merit of license comments in each file, rather this patch reduces the license comment to the minimum possible with no loss of meaning - an SPDX license identifier.

  Note also please that we remove the "written by" comments as well for the following reasons (discussed recently on rust-bitcoin repo):

  - they are not descriptive because many devs contributed
  - they have a tendency to include the wrong date because of cut'n'pasta
  - all this info is in the git history

  ref: https://spdx.dev/ids/#how

ACKs for top commit:
  apoelstra:
    ACK bb5b5cf

Tree-SHA512: 6d97de3ce8ef2a50998b1f718d6d9e832d44554542920ec5e33b3482dde756d81d91d7643c14e35bedb80a99b754054a7d6cc5112dc9ca5d2e80d605b7fa4e24
  • Loading branch information
apoelstra committed May 4, 2023
2 parents 2376038 + bb5b5cf commit 918b3a7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 52 deletions.
14 changes: 1 addition & 13 deletions src/client.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
// Rust JSON-RPC Library
// Written in 2015 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// SPDX-License-Identifier: CC0-1.0

//! # Client support
//!
Expand Down
14 changes: 1 addition & 13 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
// Rust JSON-RPC Library
// Written in 2015 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// SPDX-License-Identifier: CC0-1.0

//! # Error handling
//!
Expand Down
14 changes: 1 addition & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
// Rust JSON-RPC Library
// Written in 2015 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// SPDX-License-Identifier: CC0-1.0

//! # Rust JSON-RPC Library
//!
Expand Down
2 changes: 2 additions & 0 deletions src/simple_http.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0

//! This module implements a minimal and non standard conforming HTTP 1.0
//! round-tripper that works with the bitcoind RPC server. This can be used
//! if minimal dependencies are a goal and synchronous communication is ok.
Expand Down
2 changes: 2 additions & 0 deletions src/simple_tcp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0

//! This module implements a synchronous transport over a raw TcpListener. Note that
//! it does not handle TCP over Unix Domain Sockets, see `simple_uds` for this.
//!
Expand Down
2 changes: 2 additions & 0 deletions src/simple_uds.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0

//! This module implements a synchronous transport over a raw TcpListener.
//!
Expand Down
14 changes: 1 addition & 13 deletions src/util.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
// Rust JSON-RPC Library
// Written in 2019 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// SPDX-License-Identifier: CC0-1.0

use std::borrow::Cow;
use std::hash::{Hash, Hasher};
Expand Down

0 comments on commit 918b3a7

Please sign in to comment.