Crate libffi_sys
source ·Expand description
Low-level Rust bindings for libffi
The C libffi library provides two main facilities: assembling calls to functions dynamically, and creating closures that can be called as ordinary C functions. This is an undocumented wrapper, generated by bindgen, intended as the basis for higher-level bindings, but you can see the C libffi documentation.
See the libffi crate for a higher-level API.
Usage
Building libffi-sys will build the libffi C library from github, which requires that you have a working make, C compiler, automake, autoconf, and texinfo first. It’s on crates.io, so you can add
[dependencies]
libffi-sys = "0.6.3"
to your Cargo.toml
and
extern crate libffi_sys;
to your crate root.
This crate supports Rust version 1.20 and later.