Skip to content

Instantly share code, notes, and snippets.

@romyilano
Last active October 24, 2020 17:08
Show Gist options
  • Save romyilano/9d2a6a68f0ab3b844a2ab1e60c74d8c7 to your computer and use it in GitHub Desktop.
Save romyilano/9d2a6a68f0ab3b844a2ab1e60c74d8c7 to your computer and use it in GitHub Desktop.
Rust Saturday Morning Fun

Rust Saturday morning Fun 10/2020

Rust is a ahead of time compile language. What is llvm the power behind swift rust clang and more

fn main() {
    // ! means it's a macro
    println!("Hello, World!");
}

Terminal

 rustc HelloWorld.rs 
 // bakes the cake
 ././HelloWorld

Rust Legos

Cargo

  • Cargo - build system and package manager for rust

  • Make me own Cargo

cargo new hello_cargo

Create executable file

cargo build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment