cargo-rush-0.0.2 is not a library.
Visit the last successful build:
cargo-rush-0.0.0-reserved
cargo-rush
When you're in a rush and don't feel like creating a rust file to test out
small snippets of simple Rust code - simply copy the Rust code to the operating system's clipboard, next, open a terminal and run cargo rush.
Example 1: main
Step 1: Copy some Rust code to memory
Let's say that we copy the lines below to the clipboard (operating system memory).
Step 2:
In the terminal:
cargo install cargo-rush
cargo rush
# The command will call `rustc` on whatever is in the clipboard:
1 + 2 = 3
Example 2: Unit Tests
cargo rush can also run unit tests by using the -t flag.
Let's say we have the following code on the OS clipboard: