Skip to content

Low-level Rust bindings for libffi

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jsgf/libffi-sys-rs

 
 

Repository files navigation

libffi-sys-rs: Low-level Rust bindings for libffi

Build Status Crates.io License: MIT License: Apache 2.0

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.

If you clone this repository in order to build the library, be sure to do a recursive clone, as we include C libffi as a submodule.

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.2"

to your Cargo.toml and

extern crate libffi_sys;

to your crate root.

If you clone from github, be sure to clone --recursive to get the C libffi.

This crate supports Rust version 1.20 and later.

About

Low-level Rust bindings for libffi

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 70.7%
  • Shell 13.3%
  • C++ 9.4%
  • Makefile 6.6%