Comment by 100k
2 years ago
Yes, you can use CGO to call Rust functions using extern "C" FFI. I gave a talk about how we use it for GitHub code search at RustConf 2023 (https://www.youtube.com/watch?v=KYdlqhb267c) and afterwards I talked to some other folks (like 1Password) who are doing similar things.
It's not a lot of fun because moving types across the C interop boundary is tedious, but it is possible and allows code reuse.
No comments yet
Contribute on Hacker News ↗