Skip to main content

Module native_abi

Module native_abi 

Source
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§

NativeAbiBorrowedBytes
A borrowed byte slice passed by raw pointer across the ABI boundary.
NativeAbiCallResponse
Result of a manifest or call entry: either owned bytes or an error.
NativeAbiError
An error returned across the ABI as a heap-allocated C string holder.
NativeAbiOwnedBytes
An owned byte buffer transferred across the ABI, freed by its allocator.
NativeLibAbiHeaderV1
Version header prefix shared by every native library ABI struct.
NativeLibAbiV1
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§

NativeAbiCall
Entry that invokes a named guest function with borrowed argument bytes.
NativeAbiDestroyBytes
Entry that frees bytes the guest previously handed back to the host.
NativeAbiDestroyError
Entry that frees an error the guest previously handed back to the host.
NativeAbiDestroyInstance
Entry that destroys a guest instance handle.
NativeAbiInstantiate
Entry that creates a fresh guest instance, returning an opaque handle.
NativeAbiManifest
Entry that returns the guest’s encoded manifest as a call response.