auto-bin

Crates.ioauto-bin
lib.rsauto-bin
version0.1.1
created_at2025-09-07 22:43:58.350112+00
updated_at2025-09-07 23:12:11.756767+00
descriptionAutomates adding src/bin targets into cargo.toml.
homepage
repositoryhttps://github.com/rustserv-er/auto-bin
max_upload_size
id1828585
size19,697
Sarvesh B (rustserv-er)

documentation

README

auto-bin 🚀

Crates.io
Docs

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 .rs files inside src/bin/
  • ⚡ Automatically syncs them into Cargo.toml as bin targets
  • 📦 Simple CLI interface (init, status)
  • 🚀 Saves time and reduces errors in multi-bin projects

📦 Installation

cargo install auto-bin

🛠️ Usage

# Initialize auto-bin for your Rust project
cargo-auto-bin --init

# Check current configuration
cargo-auto-bin --status

🔮 Example

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"

📂 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.

Commit count: 7

cargo fmt