EmbarkStudios / cargo-about

📜 Cargo plugin to generate list of all licenses for a crate 🦀
http://embark.rs
Apache License 2.0
551 stars 32 forks source link

cargo-about failed to satisfy license requirements: license = "Unicode-3.0" #259

Closed topecongiro closed 2 weeks ago

topecongiro commented 2 weeks ago

Describe the bug

It seems that cargo-about fails when your dependency has crates licensed with Unicode-3.0.

To Reproduce

cargo new --bin test-bin && cd test-bin
cargo add zerovec
cargo about generate --format json

Output:

error: failed to satisfy license requirements
   ┌─ C:\Users\topecongiro\.cargo\registry\src\index.crates.io-6f17d22bba15001f\zerofrom-0.1.4\Cargo.toml:41:12
   │
41 │ license = "Unicode-3.0"
   │            -----------

error: failed to satisfy license requirements
   ┌─ C:\Users\topecongiro\.cargo\registry\src\index.crates.io-6f17d22bba15001f\zerovec-0.10.4\Cargo.toml:43:12
   │
43 │ license = "Unicode-3.0"
   │            -----------

Expected behavior

cargo-about succeeds withtout an error.

Additional context

Tested with cargo-about 0.6.4.

Jake-Shadle commented 2 weeks ago

https://embarkstudios.github.io/cargo-about/cli/generate/config.html#the-accepted-field