程式語言 - Rust - Hello, world!



參考資訊:
https://www.rust-lang.org/learn/get-started
http://bzz.wallizard.com:8081/share/books/RUST/Programming%20Rust%202nd%20Edition.pdf

產生樣板

$ cargo new hello

執行

$ cd hello
$ cargo run
    Hello, world!

src/main.rs

fn main() {
    println!("Hello, world!");
}