refactor(rust-port): remove unused once-cell crate
#58
Reference in New Issue
Block a user
Delete Branch "refactor/remove-once-cell-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary of changes
once-cellcrateCargo.lockby runningcargo build --releaseHi can you review @ruvnet, this is my first time contributing to the project
Review
The
once_cellremoval is correct. Confirmedonce_cell,Lazy, andOnceCellare not referenced anywhere incrates/wifi-densepose-nn/src/. TheCargo.tomlchange is a clean 1-line removal. Good catch.However, the
Cargo.lockregeneration introduces concerns:The lockfile was regenerated with
cargo build --release, which bumped ~30+ transitive dependencies to their latest versions and added 15 new crates that weren't in the previous lockfile:These are transitive deps pulled in by version bumps (likely
wasm-bindgen0.2.100 → 0.2.103 bringing in WASI P3 / WIT component model support). No crates were removed.The version bumps are individually fine (anyhow, chrono, clap, futures, etc. are all patch/minor bumps), but bundling them with a "remove unused crate" PR makes bisection harder if a regression surfaces.
Suggestion: Consider splitting into two commits or at minimum noting in the PR description that the lockfile includes transitive version bumps beyond the
once_cellremoval. This helps reviewers understand the scope.Summary:
cargo test --workspacelocally before merge@ruvnet this is because the Cargo.lock is outdated, so regeneration is needed so i can fully remove
once_cell