Expand description
The native ABI: byte-frame and manifest transport types for dynamic libs.
The kernel defines the versioned entrypoint, header, and call/response frame contracts that native libraries are loaded across; it defines no guest semantics beyond this transport.
Structs§
- Native
AbiBorrowed Bytes - A borrowed byte slice passed by raw pointer across the ABI boundary.
- Native
AbiCall Response - Result of a manifest or call entry: either owned bytes or an error.
- Native
AbiError - An error returned across the ABI as a heap-allocated C string holder.
- Native
AbiOwned Bytes - An owned byte buffer transferred across the ABI, freed by its allocator.
- Native
LibAbi Header V1 - Version header prefix shared by every native library ABI struct.
- Native
LibAbi V1 - The v1 native library vtable: header plus the entrypoint function table.
Constants§
- NATIVE_
DYLIB_ ENTRYPOINT_ V1 - Exported symbol name a v1 native dynamic library must expose.
- NATIVE_
LIB_ ABI_ V1_ MAJOR - Major ABI version of the v1 native library transport.
- NATIVE_
LIB_ ABI_ V1_ MINOR - Minor ABI version of the v1 native library transport.
Functions§
- native_
abi_ owned_ bytes - Transfers ownership of a
Vec<u8>into an ABI owned-bytes descriptor.
Type Aliases§
- Native
AbiCall - Entry that invokes a named guest function with borrowed argument bytes.
- Native
AbiDestroy Bytes - Entry that frees bytes the guest previously handed back to the host.
- Native
AbiDestroy Error - Entry that frees an error the guest previously handed back to the host.
- Native
AbiDestroy Instance - Entry that destroys a guest instance handle.
- Native
AbiInstantiate - Entry that creates a fresh guest instance, returning an opaque handle.
- Native
AbiManifest - Entry that returns the guest’s encoded manifest as a call response.