Skip to main content

Crate mnn_runtime_sys

Crate mnn_runtime_sys 

Source
Expand description

Narrow Rust boundary for the project-owned MNN C++ bridge.

All raw pointers and FFI calls remain in this crate, the sole owner of links = "mnn" and process coordination shared by higher-level runtimes.

Structs§

Config
Native engine configuration.
Engine
RAII wrapper around one interpreter and session.
NativeError
Error returned by the native bridge.
TensorInfo
Native tensor metadata.

Enums§

Backend
Native backend identifier understood by MNN.

Constants§

MNN_SYS_CRATE_VERSION
The pinned Rust ABI crate version.

Functions§

backend_available
Whether the linked MNN library registered a backend.
execution_gate
Shared gate for complete native transactions, including creation and destruction. Advanced users opting out must coordinate their own MNN access.
version
Linked MNN native version.