Skip to main content

Crate memlink_msdk

Crate memlink_msdk 

Source
Expand description

memlink SDK - Build modules for the memlink runtime.

Provides core infrastructure for memlink modules including arena allocation, method dispatch, request/response handling, serialization, logging, metrics, panic isolation, and persistent state references.

Re-exports§

pub use arena::Arena;
pub use caller::ModuleCaller;
pub use context::CallContext;
pub use error::ModuleError;
pub use error::Result;
pub use ref::ArenaRef;

Modules§

arena
Bump-pointer arena allocator for temporary module allocations.
caller
Module caller for nested invocations via internal channel system.
context
Call context for memlink module invocations, providing execution environment and utilities.
dispatch
Method dispatch table for routing method calls to their handlers.
error
Error types for memlink modules, including ModuleError enum and Result type alias.
exports
FFI exports for memlink module C ABI, providing memlink_init, memlink_call, and memlink_shutdown.
log
Structured logging for memlink modules, exporting logs to the daemon for aggregation.
macros
Re-exports for memlink proc macros from the memlink-msdk-macros crate.
metrics
Metrics recording for memlink modules, exporting metrics to the daemon for monitoring.
panic
Panic isolation utilities for memlink modules, catching panics and converting them to errors.
prelude
ref
Persistent state references for memlink modules, allowing data to persist across calls.
request
Request/Response types for memlink module calls.
serialize
Serialization interface for memlink modules.

Attribute Macros§

memlink_export
memlink_module