Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.61 KB

README.md

File metadata and controls

64 lines (43 loc) · 2.61 KB

Rust Fundamentals Training

Preqrequisites

Before the workshop, make sure you have the correct tools installed and verified. You need:

  1. Rustup Toolchain
  2. An editor of your choice (we highly recommmend VSCode + Extensions)

Install and verify Rust

Rustup provides you with all the software to compile and run Rust applications, e.g.

  1. Cargo - build tool and package manager
  2. rustfmt - Auto-formatting tool for Rust code
  3. clippy - Linting for common mistakes

and many more. Rustup also allows you to install different compile targets and multiple toolchains, as well as keeping your toolchains up to date.

After installing, you should have a set of new command line tools available.

Verify your Rust installation:

  1. Open a Terminal/Shell of your choice

  2. Navigate to a folder you want to use for your Rust projects

  3. Enter

    $ cargo new installation-test
  4. Cargo will create a "Hello World" application for you. Enter the newly created directory

    $ cd installation-test
  5. Build and run

    $ cargo run

If you see compile information and Hello, world! printed out on your command line, you are ready to go!

If you want to try the samples using Rust with client-side Wasm, please also install wasm-pack.

Tooling with VSCode

Install VS Code for your platform.

We recommend to use the following extensions and tools:

  1. Rust Analyzer
  2. CodeLLDB for debugging
  3. crates
  4. Just Command Runner including Just support in VSCode
  5. watchexec
  6. Optional ones depending on your preferences:
    1. vscode-icons
    2. Even Better TOML
    3. dotenv
    4. Error Lens
    5. TODO Highlight