Created
April 28, 2018 17:58
-
-
Save james-see/6d8c6ec53a16da7ad517ee6fa8d2bcce to your computer and use it in GitHub Desktop.
helloworld rust app example code
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
| #!/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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested and working on OSX High Sierra.