-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cargo: replace / by OR in the license field of Rust crates
cargo supports the legacy '/' format to specify multiple licenses and the consensus is that crates.io should only accept SPDX 2.1 license expressions, but this is not enforced as of yet. see: rust-lang/cargo#2039 Signed-off-by: Gabriel Féron <[email protected]>
- Loading branch information
1 parent
bfa7e23
commit c343abe
Showing
4 changed files
with
44 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,9 @@ project: | |
id: "Cargo::lib:0.1.0" | ||
definition_file_path: "<REPLACE_DEFINITION_FILE_PATH>" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
vcs: | ||
type: "" | ||
url: "" | ||
|
@@ -128,10 +127,9 @@ packages: | |
id: "Cargo::autocfg:0.1.6" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "Apache-2.0 OR MIT" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "Apache-2.0 OR MIT" | ||
description: "Automatic cfg for Rust compiler features" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -159,10 +157,9 @@ packages: | |
id: "Cargo::bitflags:1.1.0" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "A macro to generate structures which behave like bitflags.\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -190,10 +187,9 @@ packages: | |
id: "Cargo::cfg-if:0.1.9" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "A macro to ergonomically define an item depending on a large number\ | ||
\ of #[cfg]\nparameters. Structured like an if-else chain, the first matching\ | ||
\ branch is the\nitem that gets emitted.\n" | ||
|
@@ -313,10 +309,9 @@ packages: | |
id: "Cargo::rand:0.6.5" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Random number generators and other randomness functionality.\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -344,10 +339,9 @@ packages: | |
id: "Cargo::rand_chacha:0.1.1" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "ChaCha random number generator\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -375,10 +369,9 @@ packages: | |
id: "Cargo::rand_core:0.3.1" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Core random number generator traits and tools for implementation.\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -406,10 +399,9 @@ packages: | |
id: "Cargo::rand_core:0.4.2" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Core random number generator traits and tools for implementation.\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -437,10 +429,9 @@ packages: | |
id: "Cargo::rand_hc:0.1.0" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "HC128 random number generator\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -468,10 +459,9 @@ packages: | |
id: "Cargo::rand_isaac:0.1.1" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "ISAAC random number generator\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -529,10 +519,9 @@ packages: | |
id: "Cargo::rand_os:0.1.3" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "OS backed Random Number Generator" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -560,10 +549,9 @@ packages: | |
id: "Cargo::rand_pcg:0.1.2" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Selected PCG random number generators\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -591,10 +579,9 @@ packages: | |
id: "Cargo::rand_xorshift:0.1.1" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Xorshift random number generator\n" | ||
homepage_url: "" | ||
binary_artifact: | ||
|
@@ -684,10 +671,9 @@ packages: | |
id: "Cargo::winapi-i686-pc-windows-gnu:0.4.0" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Import libraries for the i686-pc-windows-gnu target. Please don't\ | ||
\ use this crate directly, depend on winapi instead." | ||
homepage_url: "" | ||
|
@@ -716,10 +702,9 @@ packages: | |
id: "Cargo::winapi-x86_64-pc-windows-gnu:0.4.0" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Import libraries for the x86_64-pc-windows-gnu target. Please don't\ | ||
\ use this crate directly, depend on winapi instead." | ||
homepage_url: "" | ||
|
@@ -748,10 +733,9 @@ packages: | |
id: "Cargo::winapi:0.3.8" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "Raw FFI bindings for all of Windows API." | ||
homepage_url: "" | ||
binary_artifact: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,9 @@ packages: | |
id: "Cargo::cfg-if:0.1.9" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "A macro to ergonomically define an item depending on a large number\ | ||
\ of #[cfg]\nparameters. Structured like an if-else chain, the first matching\ | ||
\ branch is the\nitem that gets emitted.\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,9 @@ project: | |
id: "Cargo::lib:0.1.0" | ||
definition_file_path: "<REPLACE_DEFINITION_FILE_PATH>" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
vcs: | ||
type: "" | ||
url: "" | ||
|
@@ -39,10 +38,9 @@ packages: | |
id: "Cargo::cfg-if:0.1.9" | ||
purl: "pkg:cargo/[email protected]" | ||
declared_licenses: | ||
- "Apache-2.0" | ||
- "MIT" | ||
- "MIT OR Apache-2.0" | ||
declared_licenses_processed: | ||
spdx_expression: "Apache-2.0 AND MIT" | ||
spdx_expression: "MIT OR Apache-2.0" | ||
description: "A macro to ergonomically define an item depending on a large number\ | ||
\ of #[cfg]\nparameters. Structured like an if-else chain, the first matching\ | ||
\ branch is the\nitem that gets emitted.\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters