This repo contains descriptions and scripts to install a development enviroment for the Rust-on-embedded workshop in Gouda, March 5th.
There are two ways to prepare:
- Use the provided Virtual Machine
- Install the required tools on your Linux of MacOS machine
Note: for Windows users, please use the provided Virtual Machine
DO THIS BEFORE MONDAY EVENING !!! (our WiFi is limited)
The Virtual Machine was created with VirtualBox and was exported as an 'appliance'. It can be downloaded from https://goo.gl/9EJEx3.
Some facts about the VM:
- based on Ubuntu 17.10
- automatically logs in to the 'rustacean' account
- that account's password is 'rust'
- which allows you to do 'sudo'
- it has the entiry toolchain installed
Again, two choices:
- use the scripts in the setting_up directory in this repo (Linux only)
- for Ubuntu-like system run the 'install_ubuntu_packages.sh' script, on other systems look in that file and install the necessary dependencies
- run 'setup.sh' (this script can be run multiple times)
- do it by hand using the following guide:
Commands to be entered on the command line are shown like this
.
- Install Rustup
- install from https://rustup.rs
- or update your Rust installation
rustup update
- Install the Rust nightly compiler
rustup toolchain add nightly
- Select the nightly compiler as default
rustup default nightly
- or remember to set it as an override for every project during the workshop
- (NEW) Install the GNU ARM Embedded toolchain
- from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
- put the bin directory in your $PATH
- (NEW) Install dfu-util using your platform's package manager
- on Debian-like systems:
sudo apt install dfu-util
- on macOS, you can use homebrew:
brew install dfu-util
- on Debian-like systems:
- Install Xargo
cargo install xargo
- to update
cargo install --force xargo
- Install Bobbin (from my fork)
cargo install --git git://github.com/egribnau/bobbin-cli
- to update from my fork
cargo install --force --git git://github.com/egribnau/bobbin-cli
These tools are installed in the VM, but are optional:
- Visual Studio Code
- install from https://code.visualstudio.com/
- Rust Language Server
rustup component add rls-preview rust-analysis rust-src
- Visual Studio Code RLS support
- install the Rust (rls) addon package, typically by hitting Ctrl-P in Code and then entering
ext install rust (rls)
. Install the top one.
- install the Rust (rls) addon package, typically by hitting Ctrl-P in Code and then entering
On March 5th, we will provide support if you cannot get the tools installed. We will have a limited amount of USB-sticks with the VM available.