| Crates.io | cargo-compat |
| lib.rs | cargo-compat |
| version | 0.1.3 |
| created_at | 2025-10-21 20:12:04.600264+00 |
| updated_at | 2025-10-22 12:43:08.469159+00 |
| description | Cargo subcommand to resolve and validate dependency versions (SemVer) for Rust projects and workspaces |
| homepage | https://github.com/BoyeGuillaume/cargo-compat |
| repository | https://github.com/BoyeGuillaume/cargo-compat |
| max_upload_size | |
| id | 1894377 |
| size | 132,191 |
A Cargo subcommand/CLI to determine compatible dependency versions (SemVer) by resolving your crates and optionally building/testing to validate.
cargo install --path .cargo run -- <command> [options]Binary name: cargo-compat (usable as cargo compat ...).
--cache-dir <path>: Override cache directory (default: $HOME/.cache/cargo-compat).--cache-age <hours>: Max age for cached crate info before refetch (default: 48).-v, --verbose | -q, --quiet | -s, --silent: Adjust log verbosity.list-dependencies
cargo compat list-dependenciescargo compat list-dependencies /path/to/Cargo.toml
cargo compat list-dependencies --include "crates/*"resolve
--cargo-path <path>: Path to cargo to use (default: cargo).--release: Build in release mode when validating.--no-test: Build only, don’t run tests.-f, --features <feat>: One or more features to enable during build/test (repeatable).cargo compat resolvecargo compat resolve --include "crates/*"cargo compat resolve --release --cargo-path /usr/bin/cargocache
cache info: Show cache location and summary.cache clean [--full]: Remove expired entries, or wipe the cache with --full.cache fetch <crate> [<version-req>] [--force]: Fetch crate info (respecting cache age unless --force).cargo compat cache infocargo compat cache cleancargo compat cache clean --fullcargo compat cache fetch serde ^1--include glob patterns that match package names.-v | -q | -s.--cache-dir and --cache-age.This tool can generate many requests to crates.io and docs.rs during resolution and validation. To avoid unnecessary load and cost:
--include in workspaces).--cache-age and avoid forcing frequent refetches.Be considerate—crates.io and docs.rs are shared community resources.