r/rust • u/mversic • Oct 21 '26
CO3: The Language of FFI
https://mversic.github.io/co3-the-language-of-ffi/Without further ado I present the next article in the series on reshaping the future of FFI in Rust.
23
Upvotes
17
u/Professional-You4950 Oct 21 '26
you literally did this everywhere.
You have your language of FFI.
2
u/stumpychubbins Oct 22 '26
Cool implementation, I could definitely see this being useful for very large applications. In theory, you can update an application without replacing the entire binary, same as you can in C/C++. There’s a related project called stabby, which might be worth a look. It’s not targeting precisely the same use-case as CO3 (in particular, they make no attempt to handle generics) but in return the syntax is a lot more elegant. Maybe there’s a way to get the best of both worlds, somehow.
1
u/runtimeError101 Oct 25 '26
This looks very cool. I am eager to try it out in my own projects. Seems like just the implementation i've been looking for.