Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 554 Bytes

Rust getting started

See more here:

Install and setup

$ sudo apt-get update
$ sudo apt-get -y upgrade

$ curl --proto '=https' --tlsv1.2 -sSf | sh
$ source $HOME/.cargo/env

Compile and run

$ cargo new hello
     Created binary (application) `hello` package
$ cd hello
$ cargo build --release
   Compiling hello v0.1.0 (/home/ubuntu/wasm-learning/rust/hello)
    Finished release [optimized] target(s) in 0.22s
$ target/release/hello
Hello, world!
You can’t perform that action at this time.