Управление зависимостями Cargo в workspace

engineering

managing-cargo-dependencies is a Claude Code skill that enforces Cargo.toml dependency management conventions for the HASH repository workspace. All external crates must be declared in the workspace root [workspace.dependencies] using caret version specifiers and default-features = false, while individual package Cargo.toml files reference them via workspace = true. Every package must organize its [dependencies] section into four named groups: public workspace deps, public third-party deps, private workspace deps, and private third-party deps — with comment headers kept even when a section is empty. The public = true flag marks dependencies exposed in the public API. Three reference files (workspace-setup.md, package-dependencies.md, examples-reference.md) provide real examples from hash-codec and hashql-core. Aimed at Rust developers adding, updating, or removing crates without breaking monorepo conventions.