| Crates.io | cargo-c-build |
| lib.rs | cargo-c-build |
| version | 0.9.3 |
| created_at | 2025-08-06 23:48:06.033809+00 |
| updated_at | 2025-08-08 01:27:22.954136+00 |
| description | An AI-enhanced git automation tool that builds and commits Rust projects with AI-generated commit messages for every build run. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1784493 |
| size | 54,891 |
AI-assisted Git commit automation during Rust builds
cargo-c-build is a custom Cargo tool that enhances your development workflow by automatically committing your changes with AI-generated commit messages every time you build your Rust project. This creates a detailed, rollback-friendly version history, especially useful when working in AI-driven or experimental environments.
git diff to generate a context summary.cargo build.With more tools (and even developers) relying on AI to generate or modify code, it's easy to lose track of changes. This crate provides:
Building toward smarter and more flexible automation, here’s what’s on the horizon for cargo‑c‑build:
# Step 1: Download the Crate
cargo install cargo-c-build
# Step 2/3: Locate Package or Working Directory and Create .env with the below inside of it.
Add API_KEY which is OpenAi Key.
Add API_URL which is "https://api.openai.com/v1/chat/completions".
Add API_MODEL which can be any OpenAi Model. (Default is "gpt-4.1-nano")
# Step 4: Run the custom build tool
cargo c-build
# Step 5: Have Fun!
":)"
# Step 1: Build the crate
cargo build
# Step 2: Install it locally
cargo install --path .
# Step 3: Locate Package or Working Directory and Create .env with the below inside of it.
Add API_KEY which is OpenAi Key.
Add API_URL which is "https://api.openai.com/v1/chat/completions".
Add API_MODEL which can be any OpenAi Model. (Default is "gpt-4.1-nano")
# Step 4: Run the custom build tool
cargo c-build
# Step 5: Have Fun!
":)"