TimonPost / cargo-unused-features

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

invalid type: map, expected a string for key `package.version` #8

Open frederikhors opened 1 year ago

frederikhors commented 1 year ago

I'm using this code in Cargo.toml:

[package]
name = "app"
version.workspace = true
edition.workspace = true
publish.workspace = true

but when I run unused-features analyze it errors with:

A
B
[2022-12-16T17:08:45Z INFO  unused_features::subcommands::analyze] C:\projects\app
[2022-12-16T17:08:45Z ERROR unused_features::subcommands::analyze] Failed to load 'C:\projects\app/bin/app' crate. invalid type: map, expected a string for key `package.version` at line 3 column 21

Windows 10, rustc 1.65.0 (897e37553 2022-11-02), cargo 1.65.0 (4bc8f24d3 2022-10-20)

frederikhors commented 1 year ago

@TimonPost is this crate still maintained?

TimonPost commented 1 year ago

It was more a one-time-weekend thingy, so it hasnt the highest priority for me to fix it existing issues, as there are a lot of other things on my todo list. So its partially maintained :)