alef 0.22.25

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
#[rustler::nif(schedule = "DirtyCpu")]
pub fn {{ unregister_fn }}(_env: rustler::Env<'_>, name: String) -> Result<rustler::Atom, rustler::Error> {
    {{ host_path }}(&name)
        .map_err(|e| rustler::Error::term(format!("{}", e)))
        .map(|_| rustler::atoms::ok())
}