| Crates.io | baml |
| lib.rs | baml |
| version | 0.218.0 |
| created_at | 2025-04-14 07:29:57.957067+00 |
| updated_at | 2026-01-22 08:59:59.446169+00 |
| description | BAML runtime for Rust - type-safe LLM function calls |
| homepage | https://github.com/BoundaryML/baml |
| repository | https://github.com/BoundaryML/baml |
| max_upload_size | |
| id | 1632503 |
| size | 264,079 |
BAML runtime for Rust - Type-safe LLM function calls.
This crate provides the runtime support for BAML-generated Rust code. Users should not import from this crate directly - instead, use the generated baml_client crate which re-exports necessary types.
This crate is typically used as a dependency by code generated by the BAML compiler. For usage instructions, see the BAML documentation.
The BAML runtime requires the libbaml_cffi dynamic library at runtime. The library is:
~/.cache/baml/libs/ on Linux, ~/Library/Caches/baml/libs/ on macOS)To disable auto-download (e.g., in air-gapped environments):
export BAML_LIBRARY_DISABLE_DOWNLOAD=true
export BAML_LIBRARY_PATH=/path/to/libbaml_cffi.dylib
Apache License - see the Repository for details.