Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Let’s install all we need.

Rust Tools

  1. Install the Rust toolchain following the steps in https://rustup.rs/

    • The Rust Toolchain is rustup plus many components cargo, rustc, the compiled std component and so on.
  2. Add the compiled std-component for our target microcontroller

    rustup target add riscv32imac-unknown-none-elf
    
  3. Add development components:

    rustup component add rust-analyzer rust-src 
    

    rust-src is the std-component’s source code, used by rust-analyzer.

Espressif tools

espflash is used for flashing our ELF binary (our program) into the board.

Install espflash with: cargo install espflash

Build dependencies

  • Debian/Ubuntu.

    sudo apt install llvm-dev libclang-dev clang
    
  • MacOS. When using the Homebrew package manager, which we recommend:

    brew install llvm
    

Additional Software

  • Editor: Neovim, Zed, VSCode, Helix.
  • Rust Analyzer LSP, for code completion, formatting.
  • Even Better TOML LSP, for editing TOML based configuration files