How to RiiR · Michael-F-Bryan


18 bookmarks. First posted by indirect 13 days ago.


A place to document my thoughts and experiments
rust  rustlang  blog  c  clang  developer  ffi  howto  languages  migration  personal  programming  riir 
12 days ago by xer0x
In a previous article we’ve talked about how you can avoid rewriting a library in Rust when you don’t need to. But what about the times when you really do need to?
programming  rust  blog  howto 
13 days ago by masukomi
A place to document my thoughts and experiments
rust  clang  migration  howto  tutorial 
13 days ago by gilberto5757
A place to document my thoughts and experiments
rust  c  languages 
13 days ago by flannel
A place to document my thoughts and experiments
rust  c 
13 days ago by amrox
Rust has a killer feature when it comes to this sort of thing. It can call into C code with no overhead (i.e. the runtime doesn’t need to inject automatic marshalling like C#’s P/Invoke) and it can expose functions which can be consumed by C just like any other C function. This opens the door for an alternative approach:

Port the library to Rust one function at a time.
13 days ago by gustavoluz
A nice walkthrough of porting C tinyvm to Rust.
rust  ffi  c 
13 days ago by emk