Skip to content

Instantly share code, notes, and snippets.

@james-see
Created April 28, 2018 17:58
Show Gist options
  • Select an option

  • Save james-see/6d8c6ec53a16da7ad517ee6fa8d2bcce to your computer and use it in GitHub Desktop.

Select an option

Save james-see/6d8c6ec53a16da7ad517ee6fa8d2bcce to your computer and use it in GitHub Desktop.
helloworld rust app example code
#!/bin/bash
# optional step install homebrew first and install rust via brew
# brew install rust
# found and taken from here: https://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-1/
echo 'fn main() {
println!("hello world");
}' > hello_world.rs;
rustc hello_world.rs
./hello_world
@james-see
Copy link
Author

Tested and working on OSX High Sierra.

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