Commits
Click on a commit to change the comparison rangefeat(tools): add cargo-stow for Cargo.toml validation and enforcement
Introduces `cargo stow`, a workspace linting tool that validates and fixes
Cargo.toml files to enforce project conventions:
- Flat crate structure (no nested crates)
- Crate naming conventions (baml_* with approved prefixes)
- Test crate pairing requirements
- Workspace dependency format enforcement
- Dependency restriction rules (e.g., anyhow only in CLI crates)
- Dependency sorting (internal deps first, then external)
Configuration via stow.toml or [workspace.metadata.stow] in Cargo.toml
allows changing rules without recompilation.
Integrated into:
- CI workflow (cargo-stow job)
- Pre-commit hooks (via setup-hooks.sh) wasm test doesn't need tools Fix: Exclude baml_tools_stow from clippy checks
Co-authored-by: vbv <vbv@boundaryml.com>3 days ago
by cursoragent