docs.rs failed to build talu-sys-0.0.1-post.202602141835
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.
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.
talu-sys
Low-level FFI bindings to the talu C API.
This crate provides raw extern "C" function declarations and #[repr(C)] type
definitions for linking against libtalu, the shared library that powers talu's
inference engine.
Most users should depend on the talu crate
instead, which provides safe, idiomatic Rust wrappers with RAII resource management
and Result-based error handling.
How it works
At build time, talu-sys locates the native libtalu shared library:
TALU_LIB_DIRenv var — if set, links against the library in that directory (used for local development and custom builds).- Automatic download — if
TALU_LIB_DIRis not set, downloads the pre-built library from the matching GitHub Release based on the crate version and target platform.
Supported targets
| Target | Library |
|---|---|
x86_64-unknown-linux-gnu |
libtalu.so |
aarch64-apple-darwin |
libtalu.dylib |
Downstream crates
talu-sys exposes DEP_TALU_LIB_DIR via Cargo's
links
mechanism, so downstream crates can locate the library for rpath embedding.
Example
use *;
use CString;
use c_void;
let model_path = new.unwrap;
let mut handle: *mut c_void = null_mut;
unsafe
License
MIT