TimonPost / cargo-unused-features

Find potential unused enabled feature flags and prune them.
MIT License
230 stars 10 forks source link

Empty reports when ran in workspace #21

Open manforowicz opened 5 months ago

manforowicz commented 5 months ago

Running unused-features analyze --log-level debug on https://github.com/manforowicz/gday generated empty reports for each crate:

{
  "version": 0,
  "root_name": "Workspace",
  "workspace_crates": {}
}

The logs looked normal, other than this being outputted repeatedly:

[2024-03-24T20:39:29Z DEBUG unused_features::subcommands::analyze] [90.0%]: Failed to compile without feature flag. error: Failed to compile toml document: failed to select a version for `env_logger`.
        ... required by package `gday v0.1.0 (/home/marcin/Documents/gday/gday)`
    versions that meet the requirements `^0.11.3` (locked to 0.11.3) are: 0.11.3

    the package `gday` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
     It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.