Skip to content
Back to skills

Update Rust Deps

ASecurity

Safely update Rust dependencies. Trigger with "update Rust dependencies", "update Cargo.toml", "upgrade crates", "cargo update".

  • 1,132 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 29, 2026
developmentrustgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add wasabeef/claude-code-cookbook --skill update-rust-deps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Rust Deps?

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

Security grade badge for Update Rust Deps
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/wasabeef-update-rust-deps/badge)](https://www.skillsdirectory.com/skills/wasabeef-update-rust-deps)

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
---
description: 'Safely update Rust dependencies. Trigger with "update Rust dependencies", "update Cargo.toml", "upgrade crates", "cargo update".'
allowed-tools:
  - Bash(cargo *)
  - Read
  - Edit
---

# Safely update Rust dependencies

Safely update dependencies in your Rust project.

## Usage

```bash
# Check dependency status and request Claude's help
cargo tree
"Please update the dependencies in Cargo.toml to their latest versions"
```

## Basic Examples

```bash
# Check current dependencies
cat Cargo.toml
"Analyze this Rust project's dependencies and tell me which crates can be updated"

# Check list of updatable crates
cargo update --dry-run
"Analyze the risk level of updating these crates"
```

## Integration with Claude

```bash
# Comprehensive dependency update
cat Cargo.toml
"Analyze Rust dependencies and perform the following:
1. Research the latest version of each crate
2. Check for breaking changes
3. Evaluate risk level (safe, caution, dangerous)
4. Suggest necessary code changes
5. Generate updated Cargo.toml"

# Safe, gradual update
cargo tree
"Update only crates that can be safely updated, avoiding major version upgrades"

# Impact analysis for specific crate update
"Tell me the impact and necessary changes when updating tokio to the latest version"
```

## Detailed Examples

```bash
# Detailed analysis including release notes
cat Cargo.toml && cargo tree
"Analyze dependencies and provide the following for each crate in table format:
1. Current β†’ Latest version
2. Risk evaluation (safe, caution, dangerous)
3. Main changes (from CHANGELOG)
4. Trait bound changes
5. Required code fixes"

# Async runtime migration analysis
cat Cargo.toml src/main.rs
"Present all necessary changes for migrating from async-std to tokio or upgrading tokio to a new major version"
```

## Risk Criteria

```text
Safe (🟒):
- Patch version upgrade (0.1.2 β†’ 0.1.3)
- Bug fixes only
- Backward compatibility guaranteed

Caution (🟑):
- Minor version upgrade (0.1.0 β†’ 0.2.0)
- New features added
- Deprecation warnings

Dangerous (πŸ”΄):
- Major version upgrade (0.x.y β†’ 1.0.0, 1.x.y β†’ 2.0.0)
- Breaking changes
- API removals or modifications
- Trait bound changes
```

## Execution of Update

```bash
# Create backups
cp Cargo.toml Cargo.toml.backup
cp Cargo.lock Cargo.lock.backup

# Execute update
cargo update

# Verify after update
cargo check
cargo test
cargo clippy
```

## Notes

Always verify functionality after updates. If issues occur, restore with:

```bash
cp Cargo.toml.backup Cargo.toml
cp Cargo.lock.backup Cargo.lock
cargo build
```

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.

Comments

Loading comments…

Newsletter

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