This workshop will give an introduction to Rust through the slides and some hands-on exercices. Slides for the workshop: https://arild.github.io/rust-workshop
The following steps should be completed before the workshop:
- Install Rust
- Clone project:
git clone https://github.com/arild/rust-workshop.git
- Run
cargo test
in project root folder. Code should compile and it's expected that tests fail (coding exercises will make them green) - Import project to IDE. Verify that code completion is available.
- IntelliJ plugin: https://plugins.jetbrains.com/plugin/22407-rust
- Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
- (Optional) Rust Rover - standalone IDE from JetBrains
- Public preview: https://www.jetbrains.com/rust/
- (Optional) Cargo watch - watch for file changes and runs the command again
cargo install cargo-watch
cargo watch -x "test partX" // x is part
- If you encounter
linker 'cc' not found
error while trying to install Rust, try to install build-essentials first:
sudo apt install build-essentials