Registry / other / libffi

libffi

JSON →
library5.1.0rscratesunverified

Rust bindings for libffi, enabling calling C functions dynamically at runtime.

# Cargo.toml [dependencies] libffi = "5.1.0"
INSTALL
IMPORT
SIG · LIBFFI
L
libffi
otherrustv5.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Closure
✓ use libffi::high::Closure;

Create a dynamic closure using libffi.

use libffi::high::Closure; fn main() { let closure = Closure::new(|x: i32| x + 1); println!("Closure created"); }
Debug
Known issues
gotchaRequires the `libffi` C library to be installed on the system.
fix
Install libffi via your package manager (e.g., `apt install libffi-dev`).
affects: >=0.0.0
Upgrade
Version history
5.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
libffi — cargo add libffi · libregistry