Crates.io | cargo-autodd |
lib.rs | cargo-autodd |
version | 0.1.10 |
created_at | 2025-02-16 14:17:37.973746+00 |
updated_at | 2025-03-15 11:16:29.215213+00 |
description | Automatically update dependencies in Cargo.toml |
homepage | https://github.com/nwiizo/cargo-autodd |
repository | https://github.com/nwiizo/cargo-autodd |
max_upload_size | |
id | 1557775 |
size | 718,320 |
A Cargo subcommand that automatically manages dependencies in your Rust projects.
cargo-autodd simplifies Rust dependency management by automatically adding required crates to your Cargo.toml based on use
statements, extern crate
declarations, and direct references in your code.
serde_json::Value
)cargo install cargo-autodd
# Show help information
cargo autodd --help
# Analyze and update dependencies in the current project
cargo autodd
# Run with debug mode for detailed analysis
cargo autodd --debug
# or
cargo autodd -d
# Check and update all dependencies to their latest versions
cargo autodd update
# Generate a detailed dependency usage report
cargo autodd report
# Check for security vulnerabilities
cargo autodd security
# Run in the root of your workspace to analyze all crates
cargo autodd
# Run in a specific crate directory within the workspace
cd crates/my-crate
cargo autodd
When using cargo-autodd in a monorepo:
path
dependencies are automatically detectedpublish = false
settingsIn debug mode, the following detailed information is displayed:
use
statements and base crate namesextern crate
statementscargo check
cargo-autodd fully supports Cargo workspaces and monorepo structures:
publish = false
settings for internal crates# Both formats are supported:
internal-crate = { path = "../internal-crate" }
[dependencies.another-internal-crate]
path = "../another-internal-crate"
This ensures that your internal crates that aren't meant to be published to crates.io are handled correctly, avoiding errors like Crate 'internal_crate' not found on crates.io
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
nwiizo (@nwiizo)