From 092702fc68c3cfa51d33665af9702ddd3b40501b Mon Sep 17 00:00:00 2001 From: Tom Milligan Date: Thu, 16 Dec 2021 17:23:34 +0000 Subject: [PATCH] chore: include license text in crate artefact --- CHANGELOG.md | 4 ++++ pretty_assertions/Cargo.toml | 2 +- pretty_assertions/LICENSE-APACHE | 1 + pretty_assertions/LICENSE-MIT | 1 + pretty_assertions_bench/Cargo.toml | 1 + scripts/check | 3 ++- 6 files changed, 10 insertions(+), 2 deletions(-) create mode 120000 pretty_assertions/LICENSE-APACHE create mode 120000 pretty_assertions/LICENSE-MIT diff --git a/CHANGELOG.md b/CHANGELOG.md index b67dc1c..9c9cbe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +## Fixed + +- Ensure license text is included in crate archive - thanks [@decathorpe](https://github.com/decathorpe) for reporting this ([#87](https://github.com/colin-kiegel/rust-pretty-assertions/pull/87), [@tommilligan](https://github.com/tommilligan)) + # v1.0.0 ## Removed diff --git a/pretty_assertions/Cargo.toml b/pretty_assertions/Cargo.toml index ca716b1..7c39cc1 100644 --- a/pretty_assertions/Cargo.toml +++ b/pretty_assertions/Cargo.toml @@ -12,7 +12,7 @@ description = "Overwrite `assert_eq!` and `assert_ne!` with drop-in replacements repository = "https://github.com/colin-kiegel/rust-pretty-assertions" documentation = "https://docs.rs/pretty_assertions" -license = "MIT/Apache-2.0" +license = "MIT OR Apache-2.0" categories = ["development-tools"] keywords = ["assert", "diff", "pretty", "color"] readme = "README.md" diff --git a/pretty_assertions/LICENSE-APACHE b/pretty_assertions/LICENSE-APACHE new file mode 120000 index 0000000..965b606 --- /dev/null +++ b/pretty_assertions/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/pretty_assertions/LICENSE-MIT b/pretty_assertions/LICENSE-MIT new file mode 120000 index 0000000..76219eb --- /dev/null +++ b/pretty_assertions/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file diff --git a/pretty_assertions_bench/Cargo.toml b/pretty_assertions_bench/Cargo.toml index 011f803..9d68a9c 100644 --- a/pretty_assertions_bench/Cargo.toml +++ b/pretty_assertions_bench/Cargo.toml @@ -3,6 +3,7 @@ name = "pretty_assertions_bench" version = "0.1.0" authors = ["Tom Milligan "] edition = "2018" +publish = false [dependencies] criterion = { version = "0.3.5", features = ["html_reports"] } diff --git a/scripts/check b/scripts/check index 4638490..4794269 100755 --- a/scripts/check +++ b/scripts/check @@ -10,7 +10,8 @@ eprintln "Formatting sources" cargo fmt -- --check eprintln "Auditing dependencies" -cargo audit --deny warnings +cargo audit --deny warnings \ + --ignore RUSTSEC-2021-0127 # unmaintained serde_cbor eprintln "Linting sources" cargo clippy --all-targets -- -D warnings