EmbarkStudios / cargo-about

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

Feature request: Allow filtering on platform #241

Closed arvid-norlander closed 11 months ago

arvid-norlander commented 11 months ago

Is your feature request related to a problem? Please describe. Currently cargo-about generates a list of all possible recursive dependencies, including platform specific dependencies such as wasm-bindgen and windows-sys. These are in indeed transitive dependencies, but only if you actually build for that platform.

Describe the solution you'd like A command line flag to specify which target triplet (e.g. x86_64-unknown-linux-gnu) to generate the output for, such that the HTML file doesn't contain spurious dependencies (we aren't targeting Windows, OS X or wasm).

Describe alternatives you've considered I looked for a way to do this in https://embarkstudios.github.io/cargo-about/, but couldn't find anything. The only thing I can find is for cargo features, not for platforms.

Additional context Add any other context or screenshots about the feature request here.

arvid-norlander commented 11 months ago

Nevermind, just discovered it is in the settings file, not on command line. For anyone else looking in the future: https://embarkstudios.github.io/cargo-about/cli/generate/config.html#the-targets-field-optional