Rust

From bibbleWiki
Revision as of 02:10, 22 June 2020 by Iwiseman (talk | contribs) (Created page with "= Sample program = <syntaxhighlight lang="rust"> fn main() { println!("Hello, world!"); } </syntaxhighlight> = Cargo = == Sample file == <syntaxhighlight lang="toml">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sample program

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

Cargo

Sample file

[package]
name = "hello_world"
version = "0.0.1"
authors = [ "Iain Wiseman iwiseman@bibble.co.nz" ]

Sample commands

cargo build
cargo run