auto-bin 0.1.1

Automates adding src/bin targets into cargo.toml.
Documentation

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.