News for hackers. Stuff that matters.
Re:Bare Metal Rust Generics by davidhyde on Sunday August 23, 2020 @05:07PM (#24255304)
See RTIC (real time interrupt-driven concurrency) formerly known as RTFM (real time for the masses - renamed due to confusion with a similar acronym about reading manuals).

https://rtic.rs

This library gets a lot of attention in the embedded rust community and is designed for tiny devices like an arm M0 mcu.

Re:Bare Metal Rust Generics by wyldfire on Sunday August 23, 2020 @05:57PM (#24255621)
RTIC looks kinda cool, I may kick the tires on it. Do you know if there's any support or docs for running C or C++ code as an `rtic::app`?
Re:Bare Metal Rust Generics by davidhyde on Sunday August 23, 2020 @06:49PM (#24255946)
You can easily call c code from rust using the extern keyword:

https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html#usin...

If your c++ code uses the c ABI (application binary interface) then you can call it easily too. There is a tool called rust-bindgen which will automatically generate the required rust code from header files.