-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Context
Per Discussion #8, a dependency audit identified 6 direct dependencies with zero usage in source code.
Unused Dependencies
mujina-miner
sha2— thebitcoincrate provides SHA-256 viabitcoin_hashes;sha2is never importedhyper(direct) — only used transitively via axum/reqwest, never imported directlymodular-bitfield— never imported anywhere in source code
mujina-dissect
hex— never importedthiserror— never importedtracing— never imported
Tool Evidence
cargo-machete (source-code heuristic, stable Rust)
$ cargo machete
mujina-dissect -- ./tools/mujina-dissect/Cargo.toml:
hex
thiserror
tracing
mujina-miner -- ./mujina-miner/Cargo.toml:
hyper
modular-bitfield
sha2
cargo +nightly udeps (compiler-level analysis)
$ cargo +nightly udeps --workspace
unused dependencies:
`mujina-miner v0.1.0`
└─── dependencies
└─── "modular-bitfield"
cargo-udeps only flags modular-bitfield because sha2 and hyper are still compiled as transitive dependencies of other crates. Removing them as direct dependencies is still correct — they remain available transitively for the crates that actually need them.
Proposed Change
Remove all 6 entries from the respective Cargo.toml files. Zero source code changes needed. Eliminates 15 exclusive transitive dependencies from the build.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels