Crates.io | cargo-autodd |
lib.rs | cargo-autodd |
version | |
source | src |
created_at | 2025-02-16 14:17:37.973746+00 |
updated_at | 2025-03-05 01:41:17.548497+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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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 and extern crate
declarations in your code.
cargo install cargo-autodd
# 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 known 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)