auto-bin 🚀
auto-bin is a Cargo subcommand that boosts Rust productivity by automating the setup of src/bin binaries.
No more manually editing Cargo.toml every time you add a new binary!
✨ Features
- 🔍 Detects all
.rsfiles insidesrc/bin/ - ⚡ Automatically syncs them into
Cargo.tomlas bin targets - 📦 Simple CLI interface (
init,status) - 🚀 Saves time and reduces errors in multi-bin projects
📦 Installation
🛠️ Usage
# Initialize auto-bin for your Rust project
# Check current configuration
🔮 Example
Suppose you have:
src/bin/foo.rs
src/bin/bar.rs
After running:
Your Cargo.toml will automatically get updated with:
[[]]
= "foo"
= "src/bin/foo.rs"
[[]]
= "bar"
= "src/bin/bar.rs"
📂 Project Goals
- Provide a smooth developer experience for Rust multi-bin projects
- Eliminate boilerplate Cargo setup
- Keep everything minimal, fast, and idiomatic
🤝 Contributing
PRs, issues, and ideas are always welcome!
📜 License
This project is licensed under the MIT License.
See LICENSE for details.