2 releases
new 0.1.1 | Feb 16, 2025 |
---|---|
0.1.0 | Feb 16, 2025 |
#143 in Cargo plugins
165 downloads per month
15KB
268 lines
📦 cargo-autodd
A tool that automatically manages Rust dependencies by analyzing your source code and updating Cargo.toml
🔍 Overview
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.
✨ Features
- 🔎 Scans Rust source files for imports
- 🤖 Automatically detects required dependencies
- ⬆️ Updates Cargo.toml with the latest stable versions
- 🗑️ Removes unused dependencies
- 🛠️ Leverages rust-analyzer for better code analysis (when available)
📥 Installation
cargo install cargo-autodd
⚙️ Requirements
- 🦀 Rust 1.70.0 or later
- 📦 Cargo
- 🔧 rust-analyzer (optional, but recommended)
🚀 Usage
In your Rust project directory:
cargo run
🔄 How It Works
- 📝 Analyzes your Rust source files
- 🔍 Detects import statements and external crate declarations
- ⚡ Updates Cargo.toml with required dependencies
- ✅ Verifies changes with
cargo check
👥 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📜 License
MIT
👤 Author
nwiizo (@nwiizo)
Dependencies
~6–16MB
~194K SLoC