Skip to content
Back to skills

Rust Dependencies

ASecurity

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.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
developmentrustgo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add Dankosik/cargo-modernize --skill rust-dependencies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Dependencies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Dependencies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dankosik-rust-dependencies-cargo-modernize/badge)](https://www.skillsdirectory.com/skills/dankosik-rust-dependencies-cargo-modernize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rust-dependencies
description: "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."
---

# 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.

Files in this skill

  • LICENSE1 KB
  • SKILL.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.