1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//! Low-level Rust bindings for [libffi](https://sourceware.org/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](http://www.atmark-techno.com/~yashi/libffi.html). //! //! See [the libffi crate](https://crates.io/crates/libffi/) for a //! higher-level API. //! //! # Usage //! //! Building libffi-sys will build the libffi C library [from //! github](https://github.com/libffi/libffi), which requires that you have //! a working make, C compiler, automake, autoconf, and texinfo first. //! It’s [on crates.io](https://crates.io/crates/libffi-sys), so you //! can add //! //! ```toml //! [dependencies] //! libffi-sys = "0.6.0" //! ``` //! //! to your `Cargo.toml` and //! //! ```rust //! extern crate libffi_sys; //! ``` //! //! to your crate root. #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(improper_ctypes)] include!(concat!(env!("OUT_DIR"), "/generated.rs"));