Skip to content

Commit

Permalink
clarify licensing (paritytech#4755)
Browse files Browse the repository at this point in the history
* adding license fields to all crates

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <[email protected]>

Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
gnunicorn and bkchr authored Jan 29, 2020
1 parent 38c5ed0 commit 0f0cc75
Show file tree
Hide file tree
Showing 145 changed files with 150 additions and 16 deletions.
1 change: 1 addition & 0 deletions .maintain/node-template-release/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-template-release"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
toml = "0.4"
Expand Down
12 changes: 1 addition & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/node-template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "2.0.0"
authors = ["Anonymous"]
build = "build.rs"
edition = "2018"
license = "Unlicense"

[[bin]]
name = "node-template"
Expand Down
1 change: 1 addition & 0 deletions bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-template-runtime"
version = "2.0.0"
authors = ["Anonymous"]
edition = "2018"
license = "Unlicense"

[dependencies]
aura = { version = "2.0.0", default-features = false, package = "pallet-aura", path = "../../../frame/aura" }
Expand Down
1 change: 1 addition & 0 deletions bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["Parity Technologies <[email protected]>"]
description = "Substrate node implementation in Rust."
build = "build.rs"
edition = "2018"
license = "GPL-3.0"
default-run = "substrate"

[badges]
Expand Down
1 change: 1 addition & 0 deletions bin/node/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Substrate node implementation in Rust."
edition = "2018"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0" }
Expand Down
1 change: 1 addition & 0 deletions bin/node/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-primitives"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sp-core = { version = "2.0.0", default-features = false, path = "../../../primitives/core" }
Expand Down
1 change: 1 addition & 0 deletions bin/node/rpc-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-rpc-client"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
env_logger = "0.7.0"
Expand Down
1 change: 1 addition & 0 deletions bin/node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-rpc"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sc-client = { version = "0.8", path = "../../../client/" }
Expand Down
2 changes: 2 additions & 0 deletions bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
build = "build.rs"
license = "GPL-3.0"

[dependencies]

# third-party dependencies
codec = { package = "parity-scale-codec", version = "1.0.6", default-features = false, features = ["derive"] }
integer-sqrt = { version = "0.1.2" }
Expand Down
1 change: 1 addition & 0 deletions bin/node/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Test utilities for Substrate node."
edition = "2018"
license = "GPL-3.0"

[dependencies]
pallet-balances = { version = "2.0.0", path = "../../../frame/balances" }
Expand Down
1 change: 1 addition & 0 deletions bin/node/transaction-factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "node-transaction-factory"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sp-block-builder = { version = "2.0.0", path = "../../../primitives/block-builder" }
Expand Down
1 change: 1 addition & 0 deletions bin/utils/chain-spec-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
build = "build.rs"
license = "GPL-3.0"

[dependencies]
ansi_term = "0.12.1"
Expand Down
1 change: 1 addition & 0 deletions bin/utils/subkey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "subkey"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
futures = "0.1.29"
Expand Down
1 change: 1 addition & 0 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-client"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sc-block-builder = { version = "0.8", path = "block-builder" }
Expand Down
1 change: 1 addition & 0 deletions client/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-client-api"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions client/authority-discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
build = "build.rs"
license = "GPL-3.0"

[build-dependencies]
prost-build = "0.5.0"
Expand Down
1 change: 1 addition & 0 deletions client/basic-authorship/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-basic-authorship"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
log = "0.4.8"
Expand Down
1 change: 1 addition & 0 deletions client/block-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-block-builder"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sp-state-machine = { version = "0.8", path = "../../primitives/state-machine" }
Expand Down
1 change: 1 addition & 0 deletions client/chain-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-chain-spec"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sc-chain-spec-derive = { version = "2.0.0", path = "./derive" }
Expand Down
1 change: 1 addition & 0 deletions client/chain-spec/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-chain-spec-derive"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[lib]
proc-macro = true
Expand Down
1 change: 1 addition & 0 deletions client/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Substrate CLI interface."
edition = "2018"
license = "GPL-3.0"

[dependencies]
clap = "2.33.0"
Expand Down
1 change: 1 addition & 0 deletions client/consensus/aura/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Aura consensus algorithm for substrate"
edition = "2018"
license = "GPL-3.0"

[dependencies]
sp-application-crypto = { version = "2.0.0", path = "../../../primitives/application-crypto" }
Expand Down
1 change: 1 addition & 0 deletions client/consensus/babe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "BABE consensus algorithm for substrate"
edition = "2018"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions client/consensus/manual-seal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Manual sealing engine for Substrate"
edition = "2018"
license = "GPL-3.0"

[dependencies]
derive_more = "0.99.2"
Expand Down
1 change: 1 addition & 0 deletions client/consensus/pow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "PoW consensus algorithm for substrate"
edition = "2018"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions client/consensus/slots/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["Parity Technologies <[email protected]>"]
description = "Generic slots-based utilities for consensus"
edition = "2018"
build = "build.rs"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0" }
Expand Down
1 change: 1 addition & 0 deletions client/consensus/uncles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Generic uncle inclusion utilities for consensus"
edition = "2018"
license = "GPL-3.0"

[dependencies]
sc-client-api = { version = "2.0.0", path = "../../api" }
Expand Down
3 changes: 2 additions & 1 deletion client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-client-db"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
parking_lot = "0.9.0"
Expand Down Expand Up @@ -32,7 +33,7 @@ substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/ru
env_logger = "0.7.0"
quickcheck = "0.9"
kvdb-rocksdb = "0.4"
tempdir = "0.3"
tempfile = "3"

[features]
default = []
Expand Down
6 changes: 3 additions & 3 deletions client/db/src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ mod tests {

#[test]
fn downgrade_never_happens() {
let db_dir = tempdir::TempDir::new("").unwrap();
let db_dir = tempfile::TempDir::new().unwrap();
create_db(db_dir.path(), Some(CURRENT_VERSION + 1));
assert!(open_database(db_dir.path()).is_err());
}

#[test]
fn open_empty_database_works() {
let db_dir = tempdir::TempDir::new("").unwrap();
let db_dir = tempfile::TempDir::new().unwrap();
open_database(db_dir.path()).unwrap();
open_database(db_dir.path()).unwrap();
assert_eq!(current_version(db_dir.path()).unwrap(), CURRENT_VERSION);
Expand All @@ -188,7 +188,7 @@ mod tests {
#[test]
fn upgrade_from_0_to_1_works() {
for version_from_file in &[None, Some(0)] {
let db_dir = tempdir::TempDir::new("").unwrap();
let db_dir = tempfile::TempDir::new().unwrap();
let db_path = db_dir.path();
create_db(db_path, *version_from_file);
open_database(db_path).unwrap();
Expand Down
1 change: 1 addition & 0 deletions client/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-executor"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
derive_more = "0.99.2"
Expand Down
1 change: 1 addition & 0 deletions client/executor/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-executor-common"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
log = "0.4.8"
Expand Down
1 change: 1 addition & 0 deletions client/executor/runtime-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
build = "build.rs"
license = "GPL-3.0"

[dependencies]
sp-std = { version = "2.0.0", default-features = false, path = "../../../primitives/std" }
Expand Down
1 change: 1 addition & 0 deletions client/executor/wasmi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-executor-wasmi"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
log = "0.4.8"
Expand Down
1 change: 1 addition & 0 deletions client/executor/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-executor-wasmtime"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
log = "0.4.8"
Expand Down
1 change: 1 addition & 0 deletions client/finality-grandpa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-finality-grandpa"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
fork-tree = { version = "2.0.0", path = "../../utils/fork-tree" }
Expand Down
1 change: 1 addition & 0 deletions client/keystore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-keystore"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
derive_more = "0.99.2"
Expand Down
1 change: 1 addition & 0 deletions client/rpc-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-rpc-api"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0" }
Expand Down
1 change: 1 addition & 0 deletions client/rpc-servers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-rpc-server"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
jsonrpc-core = "14.0.3"
Expand Down
1 change: 1 addition & 0 deletions client/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-rpc"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
sc-rpc-api = { version = "0.8", path = "../rpc-api" }
Expand Down
1 change: 1 addition & 0 deletions client/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-service"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[features]
default = ["rocksdb"]
Expand Down
1 change: 1 addition & 0 deletions client/service/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-service-test"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
tempfile = "3.1.0"
Expand Down
1 change: 1 addition & 0 deletions client/state-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sc-state-db"
version = "0.8.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
license = "GPL-3.0"

[dependencies]
parking_lot = "0.9.0"
Expand Down
Loading

0 comments on commit 0f0cc75

Please sign in to comment.