alef 0.25.9

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
#[rustler::nif(schedule = "DirtyCpu")]
pub fn {{ unregister_fn }}(env: rustler::Env<'_>, name: String) -> rustler::Atom {
    match {{ host_path }}(&name) {
        Ok(_) => rustler::types::atom::Atom::from_str(env, "ok").unwrap(),
        Err(_) => rustler::types::atom::Atom::from_str(env, "error").unwrap(),
    }
}