Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dmitris
on Feb 10, 2023
|
parent
|
context
|
favorite
| on:
The Rust Implementation of GNU Coreutils Is Becomi...
It is possible to use Rust shared objects in C (and other languages) with the "cdylib" or "staticlib" crate types and when the Rust functions are marked with 'extern "C"'. See
https://docs.rust-embedded.org/book/interoperability/rust-wi...
and
https://doc.rust-lang.org/reference/linkage.html
. The YouTube video
https://www.youtube.com/watch?v=5zmaLhSAkNE
has an example/demo and Jon Gjengset has the "Reverse FFI" section in his "Crust of Rust: Build Scripts and Foreign-Function Interfaces (FFI)" video at 2:02:57
https://www.youtube.com/watch?v=pePqWoTnSmQ&t=7378s
. Finally,
https://prog.world/building-and-using-dynamic-link-libraries...
is yes another article on "Building and using dynamic link libraries in Rust".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: