Install
Add VectorLib to a vexide project and upload it to the V5 brain.
VectorLib is a Rust crate for vexide 0.9. It needs the nightly toolchain vexide is developed against and builds for the V5's thumbv7a-vex-v5 target.
Start from the example
The repository's example/ folder is a complete robot program with all of this already set up: LemLib's example project ported line for line, plus distance sensor resets and the PID tuner. Copy it and change the ports and constants.
Add the dependencies
[dependencies]
vexide = { version = "=0.9.0-beta.1", features = ["full", "default-sdk"] }
vectorlib = { git = "https://github.com/sathvikloke/VectorLib" }Select the toolchain
[toolchain]
channel = "nightly-2026-11-07"
components = ["rust-src", "clippy", "rustfmt"]Target the V5 brain
The standard library is built from source for the V5:
[build]
target = "thumbv7a-vex-v5"
[target.'cfg(target_os = "vexos")']
runner = "cargo v5 run --file"
rustflags = ["-Clink-arg=-Tvexide.ld"]
[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["compiler-builtins-mem"]Upload
The cargo-v5 release on crates.io (0.12.1) still builds the old armv7a target, so install it from git until the next release:
cargo install --git https://github.com/vexide/cargo-v5 cargo-v5
cargo v5 upload --release