| Crates.io | auto-bin |
| lib.rs | auto-bin |
| version | 0.1.1 |
| created_at | 2025-09-07 22:43:58.350112+00 |
| updated_at | 2025-09-07 23:12:11.756767+00 |
| description | Automates adding src/bin targets into cargo.toml. |
| homepage | |
| repository | https://github.com/rustserv-er/auto-bin |
| max_upload_size | |
| id | 1828585 |
| size | 19,697 |
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!
.rs files inside src/bin/Cargo.toml as bin targetsinit, status)cargo install auto-bin
# Initialize auto-bin for your Rust project
cargo-auto-bin --init
# Check current configuration
cargo-auto-bin --status
Suppose you have:
src/bin/foo.rs
src/bin/bar.rs
After running:
cargo-auto-bin --init
Your Cargo.toml will automatically get updated with:
[[bin]]
name = "foo"
path = "src/bin/foo.rs"
[[bin]]
name = "bar"
path = "src/bin/bar.rs"
PRs, issues, and ideas are always welcome!
This project is licensed under the MIT License.
See LICENSE for details.