Skip to content

Add rust_demo Cargo project with unit test#602

Closed
ARod76 wants to merge 3 commits into
open-jarvis:mainfrom
ARod76:add-rust-demo
Closed

Add rust_demo Cargo project with unit test#602
ARod76 wants to merge 3 commits into
open-jarvis:mainfrom
ARod76:add-rust-demo

Conversation

@ARod76

@ARod76 ARod76 commented Jun 27, 2026

Copy link
Copy Markdown

Summary

Adds rust_demo, a minimal Cargo binary crate used to verify the local Rust toolchain setup.

  • Scaffolds the project (Cargo.toml, Cargo.lock, src/main.rs)
  • Adds an add(a, b) helper and prints a sample sum from main
  • Adds a unit test (test_add)
  • Includes a project-local .gitignore (/target)

Test plan

  • cargo build — compiles cleanly
  • cargo run — prints Hello, world! and 2 + 3 = 5
  • cargo test — 1 passed, 0 failed

Warp conversation

Co-Authored-By: Oz oz-agent@warp.dev

ARod76 and others added 3 commits June 26, 2026 22:23
Scaffolded with cargo new; builds and runs the default Hello World binary.

Co-Authored-By: Oz <oz-agent@warp.dev>
Ignore the Cargo build output directory (/target).

Co-Authored-By: Oz <oz-agent@warp.dev>
Introduce add(a, b), print a sample sum in main, and add a passing unit test (test_add).

Co-Authored-By: Oz <oz-agent@warp.dev>
@ElliotSlusky

Copy link
Copy Markdown
Collaborator

Thanks for taking the time to put this together, @ARod76. I appreciate the PR.

I'm going to close this one, though. rust_demo is a standalone toolchain-verification scaffold, and OpenJarvis doesn't carry demo or example crates that aren't wired into the project itself, so there isn't really a path to merging it as-is.

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.

2 participants