rust-dependencies
Skill0 starsChanged 5 days agoApache-2.0View on GitHub
Resolution. Use before adding or upgrading a crate or feature, changing toolchain or edition, or writing a non-domain parser, encoder, wrapper, or coordination helper instead of a library.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- uswuth/rustoriatheir own version, first seen Oct 25, 2026
- full-stack-skills/rust-skillstheir own version, first seen Oct 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- full-stack-skills/rust-skills★ 8same name
- uswuth/rustoria★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rust-coderSkill
- rust-debuggingSkill
- rust-errorsSkill
- rust-idiomaticSkill
- rust-performanceSkill
- rust-securitySkill
- rust-structural-qualitySkill
- rust-testingSkill
- rust-verificationSkill
- thermo-nuclear-code-quality-reviewSkill
- rust-modern-guidelinesSkill
The file
Files
Rust Dependencies
Resolution. Weigh the behavior and maintenance the application would own against a crate's compatibility, operating, and supply-chain costs, preferring a maintained crate for non-trivial general mechanisms when it fits the requirement.
Library versus custom code. Check the current owner, std, and installed workspace crates (including sibling modules and optional features already in Cargo.lock) first, delegating generic mechanics to the library while keeping domain or protocol policy in the caller. When a gap remains, evaluate candidate crates from official docs and resolved source for the exact version, defaults, features, accepted inputs, cancellation, and failure precedence. Choose custom code when a tiny fixed grammar or a concrete boundary/operating divergence favors it, documenting that concrete reason at the site.
Proportional evaluation. Match evaluation depth to the decision: record behavior, toolchain, license, and trust fit concisely in the change evidence for routine crates, and compare alternatives in depth when guarantees, maintenance, or trust boundaries materially diverge (recording new capability choices under specs/). Apply the same bar to custom general machinery.
Workspace manifest and lockfile. Declare shared versions once in [workspace.dependencies], enable only required features per member crate, and check resolved features, duplicate versions, and coupled families (such as ra_ap_*, toml/toml_edit). Keep ra_ap_syntax and ra_ap_parser on exact = pins reached only through the core syntax adapter, and keep ra_ap_mbe, ra_ap_syntax-bridge, ra_ap_tt, and salsa confined to xtask. Update Cargo.lock deliberately through Cargo during dependency changes, inspect and include its diff, and run validation with --locked while keeping Cargo's integrity checks intact.
Toolchain and scope. Move the workspace edition/rust-version together with any toolchain pin and the build MSRV stated in AGENTS.md and README.md in one reviewed change, verifying compatibility beyond the declared minimum version rather than assuming Cargo metadata proves runtime fit. Review advisories, licenses, build scripts, and proc-macros in proportion to trust impact, and verify default-feature and runtime behavior directly where claimed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

