Repository navigation
Add Rust workspace skeleton (P1-01) - #4
Merged
Merged
Conversation
Create the Cargo workspace with three crates: verone-core, verone-engine-container and verone-cli, which builds the `verone` binary. The binary supports `--version` and nothing else yet. Set workspace lints that forbid unsafe code and deny unwrap/expect outside tests, pin the toolchain to Rust 1.99.1, and add a GitHub Actions workflow that runs the format, lint and test checks on every pull request. Start the changelog. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Task P1-01 from
docs/phases/phase-1.md.Cargo.tomlwith three crates, a shared version (0.1.0), the Apache-2.0 licence and workspace lints that forbidunsafeand denyunwrap()/expect()outside tests (clippy.tomlallows them in tests).crates/verone-core: core library; only a version constant for now.crates/verone-engine-container: container engine library; empty for now.crates/verone-cli: builds theveronebinary. It supports--versionand--helponly. Two tests run the built binary.rust-toolchain.toml: pins Rust 1.99.1 with rustfmt and clippy..github/workflows/ci.yml: runscargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo teston pull requests and on pushes tomain.CHANGELOG.md,.gitignore,Cargo.lock.Why
Every later Phase 1 task builds on this layout. The lint rules and CI enforce the plan's rules for agents from the first commit.
Acceptance test ("Done when")
Run on the reference laptop (Arch Linux, Rust 1.99.1):
Notes for the reviewer
clap(derive), andassert_cmdandpredicatesas dev-dependencies.🤖 Generated with Claude Code