#tensorflow #tf-lite #ffi

sys litert-sys

Raw FFI bindings to Google's LiteRT (TFLite) C API

3 unstable releases

0.2.1 Apr 18, 2026
0.2.0 Apr 17, 2026
0.1.0 Apr 16, 2026

#2000 in Machine learning

31 downloads per month
Used in 6 crates (4 directly)

Apache-2.0

680KB
19K SLoC

litert-sys

Raw FFI bindings to Google's LiteRT 2.x C API.

This is the unsafe FFI layer — most users want the safe wrappers in the litert crate instead. Pre-generated bindings ship for every supported target so no libclang is required on end-user machines.

At build time, litert-sys/build.rs downloads the pinned LiteRT prebuilt shared libraries (Google Git LFS for desktop, Google Maven AAR for Android), SHA-256-verifies them against in-crate checksums, and caches them under $XDG_CACHE_HOME/litert-sys/. Every target flows through one pure-Rust download path — no CMake, no Bazel, no shell scripts.

See the workspace README for the full feature matrix, platform support, and contributor guide.

License

Licensed under the Apache License, Version 2.0. The vendored C headers and the downloaded prebuilt binaries are Apache-2.0 © Google LLC; see NOTICE.

Dependencies

~0–3.5MB
~52K SLoC