Skip to content

Commit

Permalink
Move fetch-license-list-from-spdx to separate crate
Browse files Browse the repository at this point in the history
Avoids building a large dependency tree when running tests.
Marked as unpublishable to avoid accidental publishing.
  • Loading branch information
Nemo157 committed May 8, 2018
1 parent 1f37d24 commit 635eaf1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
10 changes: 2 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,5 @@ license = "Apache-2.0 OR MIT"
description = "Validate SPDX 2.1 license expressions using SPDX License List 3.0 identifiers."
repository = "https://github.com/withoutboats/license-exprs"

[[example]]
name = "fetch-license-list-from-spdx"
path = "examples/fetch.rs"

[dev-dependencies]
reqwest = "0.8"
serde_json = "1"
error-chain = "0.11"
[workspace]
members = [".", "fetch-license-list-from-spdx"]
10 changes: 10 additions & 0 deletions fetch-license-list-from-spdx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "fetch-license-list-from-spdx"
version = "0.1.0"
authors = []
publish = false

[dependencies]
reqwest = "0.8"
serde_json = "1"
error-chain = "0.11"
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ fn main1(args: &[String]) -> errors::Result<()> {
/*
* whitelist fetched from https://github.com/spdx/license-list-data
*
* AUTO-GENERATED BY examples/fetch.rs
* AUTO-GENERATED BY ./fetch-license-list-from-spdx
* DO NOT MODIFY
*
* cargo run --example fetch-license-list-from-spdx v3.0 > spdx.rs
* cargo run -p fetch-license-list-from-spdx v3.0 > src/spdx.rs
*/
")?;

Expand Down
4 changes: 2 additions & 2 deletions src/spdx.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* whitelist fetched from https://github.com/spdx/license-list-data
*
* AUTO-GENERATED BY examples/fetch.rs
* AUTO-GENERATED BY ./fetch-license-list-from-spdx
* DO NOT MODIFY
*
* cargo run --example fetch-license-list-from-spdx v3.0 > spdx.rs
* cargo run -p fetch-license-list-from-spdx v3.0 > src/spdx.rs
*/

pub const VERSION: &'static str = "3.0";
Expand Down

0 comments on commit 635eaf1

Please sign in to comment.