| What it is | Write Erlang and Elixir NIFs in safe Rust | Rust bindings for Python: write Python extensions in Rust or embed Python | Ships precompiled Rustler NIFs so Elixir users don't need the Rust toolchain | Generates the interface between native C code and Elixir |
| Features | - 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
| - native Python extension modules in Rust
- embed Python in a Rust binary
- CPython, PyPy and GraalPy support
- works with maturin for building wheels
| - Downloads a precompiled NIF for the user's target instead of compiling Rust
- Checks each download against a SHA-256 checksum file shipped in the Hex package
- Builds artifacts in CI for each OS, architecture and NIF version
- Works with GitHub Actions releases and artifact attestations
| - generates Elixir-to-C interface boilerplate from a concise spec
- the same native code runs as a NIF or a CNode
- abstractions over binaries and state in native code
- compiles and loads native code through Bundlex
|