-
Hello, I wonder if there is plan to use the Rust in Zephyr kernel. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I don't know about any "plan" but you may find this interesting: https://zephyr2022.sched.com/event/10CRS/using-zephyr-with-non-c-languages-david-brown-linaro https://www.youtube.com/watch?v=4cZK6ceNMX0 |
Beta Was this translation helpful? Give feedback.
-
I don't think this would make all that much sense. Zephyr is a small enough OS that writing something equivalent from scratch in another language is feasible; that would avoid all the "worst of both worlds"-style tradeoffs that always come with mixing languages. For example, zephyr uses preprocessor macros extensively, unless you want to send your Rust code through the C preprocessor (probably a bad idea), you would have to recreate the entire devicetree macro system and maintain two implementations side-by-side. |
Beta Was this translation helpful? Give feedback.
-
The answer is outdated. There is an official effort going on to support Rust: https://github.com/zephyrproject-rtos/zephyr-lang-rust For the current state of progress: https://eoss24.sched.com/event/1aBFG/update-on-rust-in-zephyr-david-brown-linaro-ltd |
Beta Was this translation helpful? Give feedback.
The answer is outdated. There is an official effort going on to support Rust: https://github.com/zephyrproject-rtos/zephyr-lang-rust For the current state of progress: https://eoss24.sched.com/event/1aBFG/update-on-rust-in-zephyr-david-brown-linaro-ltd