1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Native function declaration helpers for Gleam and Elixir Aion workflows.
//!
//! This crate provides typed BEAM term conversions, deterministic and activity
//! NIF descriptors, registry builders, and suspension handles used by workflow
//! runtimes that expose Rust functions to BEAM code.
//!
//! # Example
//!
//! ```
//! use aion_nif::{NifSet, deterministic_nif};
//!
//! fn double(value: i64) -> i64 {
//! value * 2
//! }
//!
//! let nifs = NifSet::builder("math")
//! .with_nif(deterministic_nif!("math", "double", double, (value: i64) -> i64))
//! .build()?;
//! assert_eq!(nifs.nifs().len(), 1);
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
/// Process-scoped NIF conversion context.
/// NIF declaration builders, public macros, and suspension helpers.
/// NIF descriptors and determinism classification.
/// NIF declaration and term-conversion errors.
/// Payload-backed term conversion helpers.
/// Raw BEAM term conversion primitives.
/// Collections and builders for sets of declared NIFs.
/// Typed Rust-to-BEAM term conversion traits.
/// Collection conversion support for BEAM terms.
pub use NifContext;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;