Skip to content

Add Rust workspace skeleton (P1-01) - #4

Merged
Axoineo merged 1 commit into
mainfrom
p1/01-workspace-skeleton
Nov 14, 2026
Merged

Axoineo merged 1 commit into
mainfrom
p1/01-workspace-skeleton

Conversation

@Axoineo

@Axoineo Axoineo commented Nov 14, 2026

Copy link
Copy Markdown
Owner

What changed

Task P1-01 from docs/phases/phase-1.md.

  • Workspace: Cargo.toml with three crates, a shared version (0.1.0), the Apache-2.0 licence and workspace lints that forbid unsafe and deny unwrap()/expect() outside tests (clippy.toml allows 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 the verone binary. It supports --version and --help only. Two tests run the built binary.
  • rust-toolchain.toml: pins Rust 1.99.1 with rustfmt and clippy.
  • .github/workflows/ci.yml: runs cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test on pull requests and on pushes to main.
  • 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):

$ cargo build --release
    Finished `release` profile [optimized] target(s) in 12.68s

$ cargo fmt --check
(no output, exit 0)

$ cargo clippy --all-targets -- -D warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.37s

$ cargo test
test tests::version_matches_package ... ok
test version_flag_prints_name_and_version ... ok
test unknown_argument_is_a_usage_error ... ok
test result: ok (3 passed in total; 0 failed)

$ target/release/verone --version
verone 0.1.0

Notes for the reviewer

  • Dependencies added are all on the plan's allow-list: clap (derive), and assert_cmd and predicates as dev-dependencies.
  • This pull request is the first run of the CI workflow, so it had not been exercised before opening.
  • The toolchain pin is read by rustup (CI and contributors). Arch's system Rust package ignores it.
  • The release binary is about 1 MB.

🤖 Generated with Claude Code

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>
@Axoineo
Axoineo merged commit 7b04e29 into main Nov 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant