Created
December 29, 2021 01:05
-
-
Save abhishekpratapa/bcdc0f7e143790c33a88429c023f59cc to your computer and use it in GitHub Desktop.
Setup Rust On MacOS
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
# 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 |
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
// 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