The first step is to install Rust. This is described in depth following Rust book Chapter 1

When creating an DCES application, we define the needed dependencies to the DCES crate in the Cargo.toml file of our project. The complile process will resolve the references and download the source as needed.

Command Line Notation

In this chapter and throughout the book, we’ll show some commands used in the terminal. Lines that you should enter in a terminal all start with $. You don’t need to type in the $ character; it indicates the start of each command. Lines that don’t start with $ typically show the output of the previous command. Additionally, PowerShell-specific examples will use > rather than $.


WIP: What are the most common culprits? Can we provide some general, basic solutions?

Local documentation

DCES offers the option to install its documentation locally, so you can read it offline.

Any time a type, a function, a method or a crate is reference by the toolkit and you’re not sure what it does or how to use it, have a look at its application programming interface API documentation to find out!

Install Rust on Linux or macOS

If you are using Linux or macOS open up an terminal and copy and paste the text below and hit the enter key on your keyboard:

curl -sSf | sh

Install Rust on Windows

Download and run the Rust windows installer from

Install Redoxer (Redox OS)

If you want build and run your Rust application on a KVM capable OS for Redox you can use redoxer.

To install Redoxer you have to first install the rust toolchain. After that open up an terminal and copy and paste the text below and hit the enter key on your keyboard:

cargo install redoxer

To compile and run your application on Redox OS you should check the Redox OS Book.

Editor and IDE integration

A wide range of editors and IDE’s are providing support for Rust code like

  • like syntax-highlighting
  • auto-completion
  • linting
  • lsp support

VS Code

There is a big community that rely on the visualstudio implementation to handle their code base. Following are the steps needed to expand your installation to support VS Code for Rust development:

  1. Download VS Code from.
  2. Install Rust Language Server plugin (the Rust Language Server).

Alternative Editors and IDEs

If you prefer other solution, you will find in depth help inside the context of this incomplete links: