Current section

Files

Jump to
specter native specter_nif src lib.rs
Raw

native/specter_nif/src/lib.rs

use rustler::{Env, Term};
mod atoms;
mod specter_config;
mod state;
fn on_load(env: Env, _info: Term) -> bool {
rustler::resource!(state::StateResource, env);
true
}
rustler::init!(
"Elixir.Specter.Native",
[state::init, state::config, state::new_media_engine],
load = on_load
);