EmbarkStudios / cargo-about

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

Add a `--workspace` flag #151

Closed MaulingMonkey closed 3 years ago

MaulingMonkey commented 3 years ago

Is your feature request related to a problem? Please describe. I'm publishing an about page for someone else's repository - https://github.com/Syn-Nine/rust-mini-games - which I've added a workspace to in my fork. Individual crates don't specify package license metadata, but there is a single LICENSE-MIT in the root. To support referencing the original license file, I'd like to make a stub package in the root of the repository - in the same directory as the root of my workspace - that serves no other purpouse than to reference the license file.

However, by doing this, cargo about no longer generates license metadata for the entire workspace - but only the empty stub package.

Describe the solution you'd like Adding a --workspace flag to cargo about generate could allow cargo about to generate license metadata for the entire workspace, regardless of subdirectory and the presence of a root package or not.

Describe alternatives you've considered

Most of these all involve more awkward/invasive changes - I'm trying to keep my fork as close to the (relatively unresponsive) upstream as possible.

Jake-Shadle commented 3 years ago

Seems reasonable.