Commit 3c0bb486
3c0bb486414fMerged
Scott Nixon <[email protected]> · 9 months ago · 9 files · +1 added · ~8 modified
Description
Centralize version in workspace Cargo.toml
All crates now inherit version via version.workspace = true instead of declaring it individually. Add AGENTS.md documenting the versioning workflow.
Details
- Commit
- 3c0bb486414f
- Parent
- c2358ea41f6e
AGENTS.mdaddedView file
1+
# Attractor - Agent Instructions2+
3+
## Versioning4+
5+
All crates share a single version defined in the workspace root `Cargo.toml`:6+
7+
```toml8+
[workspace.package]9+
version = "0.1.0"10+
```11+
12+
Each crate inherits it via `version.workspace = true` in its own `Cargo.toml`. **Do not set versions directly in individual crates.**13+
14+
### How to bump the version15+
16+
1. Edit the `version` field in `/Cargo.toml` under `[workspace.package]`17+
2. Run `cargo check` to verify the workspace compiles18+
3. Rebuild the release binary: `cargo build --release`19+
4. Commit the `Cargo.toml` change and tag the release:20+
```bash21+
git add Cargo.toml22+
git commit -m "Bump version to X.Y.Z"23+
git tag vX.Y.Z24+
```25+
26+
### When to bump the version27+
28+
- **Patch** (0.1.x): Bug fixes, documentation changes, internal refactors29+
- **Minor** (0.x.0): New features, new handlers, new CLI subcommands30+
- **Major** (x.0.0): Breaking changes to pipeline format, CLI interface, or public API31+
32+
### Verifying the version33+
34+
```bash35+
cargo run -- --version36+
```37+
38+
The CLI uses clap's `#[command(version)]` attribute, which reads the version from `attractor-cli/Cargo.toml` (inherited from workspace) at compile time.Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-agent/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-cli/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-dot/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-llm/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-pipeline/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-tools/Cargo.tomlmodifiedView file
Loading diff…
crates/attractor-types/Cargo.tomlmodifiedView file
Loading diff…