| What it is | Rust bindings for Python: write Python extensions in Rust or embed Python | Write Erlang and Elixir NIFs in safe Rust | Call Rust code from Flutter and Dart, with the glue code generated for you | Generates the glue between Rust WebAssembly modules and JavaScript |
| Features | - native Python extension modules in Rust
- embed Python in a Rust binary
- CPython, PyPy and GraalPy support
- works with maturin for building wheels
| - write Erlang VM NIFs in safe Rust
- encodes and decodes Erlang terms
- catches Rust panics before they reach the VM
- derive attribute makes Rust structs encodable
- resource objects for passing Rust structs to BEAM code
- Mix compiler and mix rustler.new generator for Elixir
| - generates Dart bindings for ordinary Rust code
- arbitrary Rust types, closures, async functions and traits
- Rust can call Dart functions
- one-command project setup with flutter_rust_bridge_codegen create
- Android, iOS, Windows, Linux, macOS and web (JS and WebAssembly)
| - Import JavaScript functions and export Rust functions and types with #[wasm_bindgen]
- Generates JavaScript glue and an ES module, only for the bindings you use
- Typed bindings to JavaScript built-ins (js-sys) and Web APIs (web-sys)
- Rust futures and JavaScript promises interoperate (wasm-bindgen-futures)
- Tests in headless browsers and Node.js (wasm-bindgen-test)
|