sstadick / cargo-bundle-licenses

Generate a THIRDPARTY file with all licenses in a cargo project.
Apache License 2.0
86 stars 6 forks source link

Include licenses for Rust standard library #24

Open jwodder opened 10 months ago

jwodder commented 10 months ago

Third-party crates aren't a Rust program's only dependencies; compiled Rust binaries also link with the std or core crate, both of which are dual-licensed under MIT and Apache 2.0, and thus their licenses need to be bundled as well. See https://github.com/rust-lang/rust/issues/67014 for more information.

sstadick commented 10 months ago

Great point that I wouldn't have considered. That's not too hard to always add a core license I suppose, but we'd need to detect if something is no-std, which seems trickier? Leaving this as an open enhancement for now.