robert-w-gries / rust_workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Workshop

Examples on Rust Playground

Setup Rust on Local Machine

Mac

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

Linux

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

Ubuntu/Debian

apt install build-essential

Centos/Fedora

yum install gcc

Running the examples on local machine

You can run any of the code examples by using cargo run --example [example]. You can compile the error code by using cargo run --example [example] --features=broken.

To run the mutex example, execute the following commands:

cargo run --example mutex
cargo run --example mutex --features=broken

About


Languages

Language:Rust 91.0%Language:HTML 9.0%