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

Only trigger workspace analysis if there are workspace members

Open bbannier opened this issue 1 year ago • 0 comments

We would previously trigger workspace analysis if a Cargo.toml had any workspace entry even though we ultimately cared about workspace.members. This caused empty reports for files which used workspace only for configuration like e.g., entries created by cargo-dist.

With this patch we handle a workspace only if workspace.members is present. We also simplify the code since we do not need to inject anymore wheter a project "uses" workspaces (i.e., has workspace members).

Closes #22.

bbannier avatar Jul 02 '24 15:07 bbannier