llam-0.1.0 has been yanked.
llam
Safe, synchronous Rust bindings for the LLAM C runtime.
llam is the only crate users need:
[]
= "0.1.0"
It includes safe wrappers, raw C ABI bindings under llam::sys, and a build
script that installs the LLAM C SDK into Cargo's private OUT_DIR/llam-sdk
prefix by default.
Example
For I/O-heavy code:
#[llam::main] is not provided because LLAM-rs publishes only this single
crate. Rust attribute macros require a separate proc-macro crate.
Build
Default:
The build script installs LLAM C into:
target/.../build/llam-*/out/llam-sdk
Use a preinstalled SDK:
LLAM_SYS_PREFIX="/.local/llam"
Useful environment variables:
LLAM_SYS_PREFIX: installed LLAM SDK prefix.LLAM_SYS_LIB_DIRandLLAM_SYS_INCLUDE_DIR: direct lib/include override.LLAM_SYS_INSTALL_PREFIX: override automatic SDK install prefix.LLAM_SYS_INSTALL_VERSION: LLAM release version. Default:1.0.0.LLAM_SYS_INSTALL_TARGET: explicit release target.LLAM_SYS_NO_INSTALL=1: disable automatic install.
Modules
llam::run,llam::run_with_profilellam::spawn!,llam::try_spawn!,JoinHandle,TaskGroupllam::channel,llam::select!llam::sync,llam::time,llam::blockingllam::net,llam::io,llam::fsllam::task_local,llam::diagnosticsllam::sys