{"id":59983,"library":"libffi","title":"libffi","description":"Rust bindings for libffi, enabling calling C functions dynamically at runtime.","status":"active","version":"5.1.0","language":"rust","source_language":null,"source_url":"https://github.com/libffi-rs/libffi-rs","tags":["ffi","dynamic-call","c-bindings"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nlibffi = \"5.1.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add libffi","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Closure","correct":"use libffi::high::Closure;"}],"quickstart":{"code":"use libffi::high::Closure;\n\nfn main() {\n    let closure = Closure::new(|x: i32| x + 1);\n    println!(\"Closure created\");\n}","lang":"rust","description":"Create a dynamic closure using libffi."},"warnings":[{"fix":"Install libffi via your package manager (e.g., `apt install libffi-dev`).","message":"Requires the `libffi` C library to be installed on the system.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'bind':3,19 'c':8,18 'c-bind':17 'call':7,16 'dynam':10,15 'dynamic-cal':14 'enabl':6 'ffi':13 'function':9 'libffi':1,5 'runtim':12 'rust':2","created_at":"2026-06-16T17:23:30.756041+00:00","updated_at":"2026-06-16T17:23:30.756041+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/libffi-rs/libffi-rs","github":"https://github.com/libffi-rs/libffi-rs","docs":"https://docs.rs/libffi/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}