Page tree

Michael O'Brien

Skip to end of metadata
Go to start of metadata

Rust is a highly safe concurrent development language - primarily for systems programming.

Quickstart

https://www.rust-lang.org/

OSX Installation

obrienlabs:wse_rust michaelobrien$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
Welcome to Rust!
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: latest update on 2019-08-15, rust version 1.37.0 (eae3437df 2019-08-13)
info: downloading component 'rustc'
 78.7 MiB /  78.7 MiB (100 %)   6.9 MiB/s in 11s ETA:  0s
info: downloading component 'rust-std'
 56.3 MiB /  56.3 MiB (100 %)   7.2 MiB/s in  7s ETA:  0s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.3 MiB /  11.3 MiB (100 %)   7.1 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 78.7 MiB /  78.7 MiB (100 %)  17.7 MiB/s in  4s ETA:  0s
info: installing component 'rust-std'
 56.3 MiB /  56.3 MiB (100 %)  20.0 MiB/s in  2s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 11.3 MiB /  11.3 MiB (100 %)   2.7 MiB/s in  4s ETA:  0s
info: default toolchain set to 'stable'
  stable installed - rustc 1.37.0 (eae3437df 2019-08-13)
To configure your current shell run source $HOME/.cargo/env
obrienlabs:wse_rust michaelobrien$ source $HOME/.cargo/env

obrienlabs:wse_rust michaelobrien$ rustc --version
rustc 1.37.0 (eae3437df 2019-08-13)
obrienlabs:wse_rust michaelobrien$ cargo --version
cargo 1.37.0 (9edd08916 2019-08-02)

obrienlabs:wse_rust michaelobrien$ cd hello-world/
obrienlabs:hello-world michaelobrien$ cargo run
   Compiling hello-world v0.1.0 (/Users/michaelobrien/wse_rust/hello-world)
    Finished dev [unoptimized + debuginfo] target(s) in 1.87s
     Running `target/debug/hello-world`
Hello, world!



  • No labels