Hsrs – Type-Safe Haskell Bindings Generator for Rust
Type-safe Rust-to-Haskell FFI with automatic memory management via ForeignPtr.
A high-performance multi-language bindings generator for Rust, up to 1,000x faster than UniFFI. Ship Rust libraries that feels native to Swift, Kotlin, and more
Zero-copy FFI approach cuts UniFFI overhead by 200–1000x; async maps to native patterns.
Rust library authors targeting mobile and WASM; iOS/Android developers shipping Rust
UniFFI · wasm-bindgen
The main thing we cared about was boundary overhead so BoltFFI uses a different approach than UniFFI and the bench numbers are much better in our case, also async exports map to native async patterns on the target side.
few numbers from the current benches vs UniFFI
echo_i32 BoltFFI <1 ns UniFFI 1,416 ns speedup >1000x
counter_increment 1k calls BoltFFI 2,700 ns UniFFI 1,580,000 ns speedup 589x
generate_locations 10k BoltFFI 62,542 ns UniFFI 12,817,000 ns speedup 205x
benchmarks and code are in the repo and we compare against UniFFI and wasm-bindgen there.
repo: https://github.com/boltffi/boltffi
docs: https://www.boltffi.dev/docs/overview
benchmarks: https://github.com/boltffi/boltffi/tree/main/benchmarks
Type-safe Rust-to-Haskell FFI with automatic memory management via ForeignPtr.
Rust rewrite with PDFium delivers 100x speedup over the Python v1.
Python FFI bridge via PyO3 is clever, but tool-calling frameworks are crowded.
Finally: XLOOKUP, FILTER, dynamic arrays in Python—openpyxl can't, xlcalc won't.
More general than aTAM/kTAM tile models, but the audience is extremely narrow.
Pure Swift Argon2 avoids FFI, but lacks libsodium's battle-tested audit history.