Skip to main content

Setup

Install Rust

To install Rust, you can use rustup, the official Rust installer. It will download and install the latest stable version of Rust for your platform.

Create a new project

To create a new project, run the following command:

cargo new vasystem-api-example-rust

This will create a new directory called vasystem-api-example-rust with a new Cargo project.

Add dependencies

To add the dependencies, open the Cargo.toml file and add the following dependencies:

[dependencies]
tokio = "1.0"
vasystem-api = { path = "../vasystem-api" }

Then, run cargo build to download the dependencies.