Crate avmnif_rs

Source

Re-exports§

pub use context::Context;
pub use term::Term;
pub use term::NifResult;
pub use crate::log::log_info;

Modules§

atom
AtomVM Atom Table Interface
context
Context management for AtomVM ports and NIFs
log
port
Port collection macros for AtomVM
registry
resource
Resource management macros for AtomVM NIFs
tagged
Tagged Map serialization for creating Erlang-compatible ADTs
term

Macros§

atom_with_table
These macros now require an atom table parameter for full genericity
create_resource
Create a new resource instance
get_resource
Extract a resource from an Erlang term
impl_platform_data
Macro for implementing PlatformData with custom cleanup
list
make_resource_term
Convert a resource pointer to an Erlang term
map
nif_collection
port_collection
Register a port collection with AtomVM
port_data
Macro for creating simple port data structures
resource_type
Register a new resource type with AtomVM
simple_port
High-level port creation macro that handles common patterns
tuple