Blog: Expose a Rust Library to Other Languages #142
Replies: 3 comments 3 replies
-
Great post, thanks! It reminded me of https://hsivonen.fi/modern-cpp-in-rust/ from a while ago. I have a couple of questions:
Isn't this just unmangled? Or am missing some dark corner of C which requires mangling?
Can you use |
Beta Was this translation helpful? Give feedback.
-
Nice post! 😄 Recently, I heard from a friend about this project, which by the way seems quite promising. Today I tried deliberately through the translator [C89 to Zig] embedded in the Zig compiler (still in development, generating a awful code) that ended up resulting in this:
However, Zig does not follow the generic syntax of C++ and Rust or even support native polymorphism and interfaces, since the language focuses on C-like. |
Beta Was this translation helpful? Give feedback.
-
Interesting post! You may be interested to read how libsignal-client does bindings from Rust to Node JS, Swift, and Java. |
Beta Was this translation helpful? Give feedback.
-
Discussion thread for the blog post Expose a Rust Library to Other Languages
https://sixtyfps.io/blog/expose-rust-library-to-other-languages.html
Beta Was this translation helpful? Give feedback.
All reactions