Registry / other / rustler

rustler

JSON →
library0.38.0rscratesunverified

Safe Rust wrappers for creating Erlang NIF functions.

# Cargo.toml [dependencies] rustler = "0.38.0"
INSTALL
IMPORT
SIG · RUSTLER
R
rustler
otherrustv0.38.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NifMap
use rustler::NifMap;

Defines an Erlang NIF that returns a map.

use rustler::NifMap; #[derive(NifMap)] struct Person { name: String, age: u32, } #[rustler::nif] fn create_person(name: String, age: u32) -> Person { Person { name, age } } rustler::init!("Elixir.MyModule", [create_person]);
Debug
Known issues
gotchaRequires Erlang/OTP and proper NIF setup; can crash the BEAM if not careful.
fix
Ensure all NIFs are safe and handle errors properly; test in a controlled environment.
affects: *
Upgrade
Version history
0.38.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rustler — cargo add rustler · libregistry