cargo-unused-features icon indicating copy to clipboard operation
cargo-unused-features copied to clipboard

Mere presence of any `workspace` settings in `Cargo.toml` triggers analysis of workspace members

Open bbannier opened this issue 1 year ago • 0 comments

I am working on a project which uses a cargo-dist-generated workspace section, e.g.,

# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.17.0"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu"]
# Publish jobs to run in CI
pr-run-mode = "plan"
# Whether to install an updater program
install-updater = true

The project has no workspace members, so if I run analyze on the project nothing gets analyzed (similar to #21).

bbannier avatar Jul 02 '24 14:07 bbannier