Skip to content

Phase 1a: Scaffold Cargo workspace and rust-toolchain #15

Closed

Description

@zackees

Part of #14

Goal

Add the minimal Rust workspace scaffolding that compiles and passes CI without changing any existing Python behavior.

Tasks

  • Add Cargo.toml workspace root with resolver = "2", workspace members for crates/fastled-cli and crates/fastled-py
  • Add rust-toolchain.toml pinning a stable Rust version (1.85+), profile minimal, components clippy, rustfmt
  • Create crates/fastled-cli/Cargo.toml with clap dependency, build a hello-world binary that prints version
  • Create crates/fastled-py/Cargo.toml with pyo3 dependency (abi3-py310), cdylib crate type, expose a _native module with a version() function
  • Add Cargo.lock to version control
  • Verify cargo build --workspace succeeds on Windows, macOS, Linux
  • Verify cargo test --workspace passes (even if tests are trivial)
  • Verify cargo clippy --workspace and cargo fmt --check pass

Acceptance criteria

  • cargo build --workspace compiles on all platforms
  • cargo test --workspace passes
  • Existing Python bash lint and bash test still pass (no regressions)
  • No changes to Python source code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions