Commit 40bc8e8
security: Eliminate all Dependabot vulnerabilities
Remove vulnerable dependencies by replacing Solana utility crates:
- Remove unused `config` crate (json5 vulnerability RUSTSEC-2025-0120)
- Replace `solana-clap-utils` with src/utils/validators.rs
- Eliminates ansi_term (RUSTSEC-2021-0139)
- Eliminates atty (RUSTSEC-2024-0375, RUSTSEC-2021-0145)
- Eliminates clap 2.x dependency chain entirely
- Replace `solana-cli-config` with src/utils/config_loader.rs
- It depended on solana-clap-utils transitively
Results:
- Security vulnerabilities: 5 → 1 (only paste "unmaintained" warning remains)
- clap 2.x: Completely eliminated from dependency tree
- Total crates: 3053 → 2949 (-104 dependencies)
- ~250 lines of straightforward Rust replaces 2 external crates
The remaining paste warning (RUSTSEC-2024-0436) is "unmaintained" not a
security vulnerability. It's used by ratatui, image, rmp-serde and cannot
be removed without major TUI rewrites.
Also fixes pre-existing compilation errors in ovsm compiler (borrow checker,
match exhaustiveness for new Load1/2/4 instructions).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 55d65a3 commit 40bc8e8
File tree
12 files changed
+965
-464
lines changed- .cargo
- crates/ovsm/src/compiler
- src
- commands
- utils
12 files changed
+965
-464
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments