Files
nym/cargo-version-scanner
2025-07-30 19:55:00 +02:00
..
2025-07-30 19:55:00 +02:00
2025-07-30 19:55:00 +02:00
2025-07-30 19:55:00 +02:00
2025-07-30 19:55:00 +02:00

Cargo Version Scanner

Simple tool to parse + check all versions of crates in the monorepo. Optionally outputs a nice table for quickly checking versions.

 cargo run -- -h
 Scan Cargo.toml files in a Rust monorepo and analyze versions

 Usage: cargo-version-scanner [OPTIONS]

 Options:
   -v, --verbose          Show verbose list of all crates, paths & versions
   -u, --unset-only       Only show crates with UNSET versions
       --sort-by-version  Sort by version instead of path (alphabetical)
   -h, --help             Print help

# Logs the verbose table @ the end sorted by version, instead of alphabeticly
 cargo run -- -v --sort-by-version

Gross sed command for changing everything to workspace

# Replace version = "x.y.z" with version.workspace = true
find . -name "Cargo.toml" \
  -not -path "./nym-wallet/*" \
  -not -path "./contracts/*" \
  -not -path "./target/*" \
  -not -name "./Cargo.toml" \
  -exec sed -i 's/^version = ".*"/version.workspace = true/' {} \;