Yes, it is possible!
And already happening.
Learning Rust <=> FFI
- π§ bindgen - Automatically generates Rust FFI bindings to C (and some C++) libraries.
- π§ cross - βZero setupβ cross compilation and βcross testingβ of Rust crates
- π§ crossgen - Cross compilation template generator
- π§ safer_ffi - Write safer FFI code in Rust without polluting it with unsafe code
Blog posts
Languages
C
C#
C++
Dart
Erlang
Go
Java
Lua
Node.js
Objective-C
Perl
PHP
- davidcole1340/ext-php-rs - Bindings and abstractions for the PHP API, making it easy to write native, low-level PHP extensions in Rust.
Python
R
Ruby
Web Assembly
See also