Install

This chapter will explain how to install motorcortex-rust.

Due to the nature of the Rust programming language and its package management system, installing motorcortex-rust is straightforward.

Prerequisites

Logically, Rust and Cargo are required to use motorcortex-rust. Rust can be easily installed with rustup. Cargo comes bundled with Rust installations from rustup.

Setup a project

To create a new Rust project, you can use Cargo’s built-in command:

cargo new my_motorcortex_app
cd my_motorcortex_app

Installation

Motorcortex-rust can be added to the requirements of your Rust project by adding the following line to your Cargo.toml file:

[dependencies]
motorcortex = "0.1"

Now you can use motorcortex-rust in your projects!