TimonPost / cargo-unused-features

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

Debug Log contains wrong dependency progress #18

Open Redfire75369 opened 9 months ago

Redfire75369 commented 9 months ago

Describe the bug The dependency progress in the debug log for finishing pruning features of a dependency uses the progress from the start instead of the end. https://github.com/TimonPost/cargo-unused-features/blob/315fb128a9742dda8a9a143124f914c49fcb781a/src/subcommands/analyze.rs#L230-L234

Provide the following information Debug Log:

[2023-11-25T14:32:21Z INFO  unused_features::subcommands::analyze] [85.7%]: Prune 'color' feature flag from 'clap'
[2023-11-25T14:32:21Z DEBUG unused_features::subcommands::analyze] [85.7%]: Try compiling without feature flag.
[2023-11-25T14:33:47Z DEBUG unused_features::subcommands::analyze] [85.7%]: Successfully compiled without feature.flag.
[2023-11-25T14:33:47Z INFO  unused_features::subcommands::analyze] [92.9%]: Prune 'derive' feature flag from 'clap'
[2023-11-25T14:33:47Z DEBUG unused_features::subcommands::analyze] [92.9%]: Try compiling without feature flag.
[2023-11-25T14:35:13Z DEBUG unused_features::subcommands::analyze] [92.9%]: Failed to compile without feature flag. error: Failed to compile toml document: 1 job failed
[2023-11-25T14:35:13Z DEBUG unused_features::subcommands::analyze] [50.0%]: Finished stripping feature flags from dependency cli.

For more exact details, refer to #17.