alef 0.23.37

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