Оптимизация зависимостей Rust-проекта
engineering
rationalize-deps is a Claude Code skill that analyzes Cargo.toml dependencies and systematically removes unused features to reduce compile times and binary size. It identifies crates that lack `default-features = false`, disables them, runs `cargo check --workspace`, and reads compilation errors to determine the minimal required feature set — using binary search when a crate exposes many defaults. The skill supports targeting a specific crate (e.g., tokio, serde, reqwest), a single workspace member, or the entire workspace at once. After all modifications, it verifies correctness with `cargo check --workspace --all-targets` and `cargo test --workspace --no-run`. Built for Rust developers working on large Cargo workspaces who want faster incremental builds and leaner binaries without manual trial-and-error.
- #rust
- #cargo
- #dependency-optimization
- #build-performance
- #compilation