Rust Language Support
zephyrproject-rtos · 260 GitHub stars
Write Zephyr applications in Rust: the zephyr crate, Cargo build integration and devicetree codegen.
- Follows branch
main: eachwest updatewill get its latest commits. To stay on one version, it is recommended to use a release tag.
Install
# From the workspace root
curl -fsSL https://kartben.github.io/windrose/m/zephyr-lang-rust.yaml \
-o zephyr/submanifests/zephyr-lang-rust.yaml
west update zephyr-lang-rust
# From the workspace root
Invoke-WebRequest https://kartben.github.io/windrose/m/zephyr-lang-rust.yaml `
-OutFile zephyr/submanifests/zephyr-lang-rust.yaml
west update zephyr-lang-rust
west.yml
- name: zephyr-lang-rust url: https://github.com/zephyrproject-rtos/zephyr-lang-rust revision: main path: modules/lang/rust
Add to projects in your west.yml, then run west update zephyr-lang-rust.
Details
- Revision
- main
- License
- Apache-2.0
- Maintainers
- @zephyrproject-rtos
- Last commit
- 14 days ago
- Includes
- Samples, Tests
About
The zephyr-lang-rust module adds support for writing Zephyr applications in Rust. It provides the zephyr crate, which exposes Zephyr kernel services, devices and logging to Rust code, the build support that compiles an application's Cargo crate and links it into the Zephyr image, and code generation from the devicetree.
The module is licensed under the Apache-2.0 license.