Skip to content

Instantly share code, notes, and snippets.

@abhishekpratapa
Created December 29, 2021 01:05
Show Gist options
  • Save abhishekpratapa/bcdc0f7e143790c33a88429c023f59cc to your computer and use it in GitHub Desktop.
Save abhishekpratapa/bcdc0f7e143790c33a88429c023f59cc to your computer and use it in GitHub Desktop.
Setup Rust On MacOS
# https://youtu.be/nMpaCApCebQ
# A list of commands used in the video
cargo new my_app
cd my_app
cargo run
cargo test
# Additional commands not covered in the video
cargo new my_library --lib
cargo build
cargo benchmark
// https://youtu.be/nMpaCApCebQ
// Code used in the video
fn main() {
println!("Hello, me!");
}
#[cfg(test)]
mod tests {
#[test]
fn empty_test() {
assert!(true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment