Add rust_demo Cargo project with unit test#602
Closed
ARod76 wants to merge 3 commits into
Closed
Conversation
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>
Collaborator
|
Thanks for taking the time to put this together, @ARod76. I appreciate the PR. I'm going to close this one, though. |
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.
Summary
Adds
rust_demo, a minimal Cargo binary crate used to verify the local Rust toolchain setup.Cargo.toml,Cargo.lock,src/main.rs)add(a, b)helper and prints a sample sum frommaintest_add).gitignore(/target)Test plan
cargo build— compiles cleanlycargo run— printsHello, world!and2 + 3 = 5cargo test— 1 passed, 0 failedWarp conversation
Co-Authored-By: Oz oz-agent@warp.dev