Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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`?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: