Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add article for vexide (Rust runtime) #58

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
* [VEX Programming Software](software/vex-programming-software/README.md)
* [PROS](software/vex-programming-software/pros/README.md)
* [OkapiLib](software/vex-programming-software/pros/okapilib.md)
* [vexide](software/vex-programming-software/vexide.md)
* [Robot Mesh Studio (RMS)](software/vex-programming-software/robot-mesh-studios.md)
* [EasyC](software/vex-programming-software/easyc.md)
* [RobotC](software/vex-programming-software/robotc.md)
Expand Down
38 changes: 38 additions & 0 deletions software/vex-programming-software/vexide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
description: >-
Open-source Rust runtime for VEX V5 robots.
---

{% hint style="info" %}
For more in-depth documentation and tutorials on vexide, head over to their [website](https://vexide.dev/).
{% endhint %}

vexide is a community-maintained `no_std` Rust runtime for VEX V5 robots. It allows you to write and run Rust code for the V5 Brain and control V5 devices like motors and sensors. You can think of it as an alternative to PROS or VEXcode, but for the Rust programming language (rather than C or C++).

vexide handles low-level operations like task scheduling, memory allocation, competition state, etc… allowing user code written on top of it to run seamlessly and fast. It heavily leans into Rust's async features for multitasking, providing its own lightweight cooperative scheduler for asynchonous operations.

| Platforms: |
| ---------- |
| Windows |
| macOS |
| Linux |
| Android (via [termux](https://termux.dev/en/)) |

## Features
* Open source; no proprietary dependencies.
* Cross-platform
* Memory Safety
* Minimal Runtime Overhead
* Hardware-optimized VFPv3 Math Operations
* Error handling features for devices.
* Supports compiling to WASM and running locally in a [WASM simulator](https://github.com/vexide/v5wasm) or [QEMU emulator](https://github.com/vexide/vex-v5-qemu).
* Graphics drivers for [Slint](https://slint.dev/) and [embedded-graphics](https://crates.io/crates/embedded-graphics).
* Works with the `cargo`/[crates.io](https://crates.io/) package management/dependency ecosystem.
* Dedicated [`cargo-v5`](https://github.com/vexide/cargo-v5) CLI tool for uploading.

vexide is available as a [library on crates.io](https://crates.io/crates/vexide) and can be added to an existing Rust project, but the recommended way to create a project is through [vexide-template](https://github.com/vexide/vexide-template/).

## Teams Contributed to this Article:

- [AUBIE2](https://eng.auburn.edu/student-organizations/profiles/ARC.html) (Auburn Robotics Club)
- [FRC 3636](https://frcteam3636.com/) (Generals Robotics)