Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
st-zrt
Safe, zero-overhead Rust runtime bindings for ONNX Runtime 1.27.
st-zrt keeps ONNX Runtime as the kernel engine and focuses on the Rust boundary: zero-copy caller
buffers, prepared fixed-shape I/O, explicit lane-based serving, sparse tensors, IoBinding,
profiling, threading options, async runs, custom ops, CUDA/provider configuration, mmap-backed
dense initializers, packed sub-byte raw byte access, session logging, and model-editor access
behind feature gates.
use ;
Feature flags:
half:f16/bf16tensor element types.serde: serializableSessionOptionsand provider config types.ep: execution-provider option builders and device discovery.cuda: CUDA ONNX Runtime build and strict GPU inference tests; impliesep.custom-ops: safe Rust custom operator authoring.model-editor: graph/model editing, attributed nodes, AOT compile, EP registry and interop wrappers.
Examples:
Reusable lanes bind inputs once by default for the CPU zero-allocation hot path. CUDA/TensorRT
callers that mutate reusable CPU input buffers can opt into per-run input rebinding with
StaticIoLane::set_rebind_inputs_each_run(true) or
DynamicIoOptions::with_rebind_inputs_each_run(true).
The raw generated FFI lives in st-zrt-sys.
Packed 2-bit/4-bit tensors are byte-oriented in the safe API. as_slice::<T>() remains reserved
for 1:1 Rust scalar element types; use as_bytes() or Tensor::from_packed_bytes for already
packed storage, subject to ORT accepting that packed element type.
License: Apache-2.0.