Thanks to visit codestin.com
Credit goes to lib.rs

2 releases

2.0.0-alpha.3 Jan 3, 2026
2.0.0-alpha.1 Dec 25, 2025

#423 in Database implementations

MIT/Apache

1MB
18K SLoC

entidb_ffi

Stable C ABI for EntiDB bindings.

Overview

This crate provides a stable C ABI interface for EntiDB, enabling language bindings (Dart, Python, and others) to interact with the EntiDB core engine safely.

Features

  • Stable C ABI: Consistent interface across different Rust compiler versions
  • Memory-safe FFI: Explicit ownership and buffer management
  • Error codes: ABI-safe error handling without panics across FFI boundary
  • Encryption support: Optional AES-256-GCM encryption APIs

Usage

This crate is intended for binding authors. See the Dart and Python bindings for reference implementations.

Building

The crate produces both cdylib (shared library) and staticlib outputs:

cargo build --release -p entidb_ffi

Safety

This crate contains unsafe code as required for FFI. All unsafe operations are carefully documented and reviewed.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Dependencies

~8–12MB
~137K SLoC