Skip to content

Commit

Permalink
build: check for unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Jan 23, 2025
1 parent 9b63471 commit db04d7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions helpers/unused_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ echo -e "\033[1;33munused dependencies for library (minimal)\033[0m"
cargo +nightly udeps -q --lib --workspace --no-default-features

echo -e "\033[1;33munused dependencies for library (cli)\033[0m"
cargo +nightly udeps -q -p versatiles_container -p versatiles_core --lib --no-default-features --features cli
cargo +nightly udeps -q --lib --workspace --no-default-features --features cli --exclude versatiles

echo -e "\033[1;33munused dependencies for library (test)\033[0m"
cargo +nightly udeps -q -p versatiles_container -p versatiles_core --lib --no-default-features --features test
cargo +nightly udeps -q --lib --workspace --no-default-features --features test

echo -e "\033[1;33munused dependencies for library (all-features)\033[0m"
cargo +nightly udeps -q --lib --workspace --all-features --exclude versatiles --exclude versatiles_core
8 changes: 5 additions & 3 deletions versatiles_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ byteorder = { workspace = true, features = [] }
clap = { workspace = true, optional = true, features = ["std", "derive"] }
colored = { version = "3.0.0", default-features = false, optional = true }
enumset.workspace = true
flate2 = { version = "1.0.35", default-features = false, features = ["default"] }
flate2 = { version = "1.0.35", default-features = false, features = [
"default",
] }
futures.workspace = true
indicatif = { version = "0.17.9", default-features = false, features = [
indicatif = { version = "0.17.9", default-features = false, optional = true, features = [
"unicode-width",
], optional = true }
] }
itertools.workspace = true
lazy_static = { workspace = true }
num_cpus.workspace = true
Expand Down

0 comments on commit db04d7a

Please sign in to comment.