capstone-sys 0.9.0

System bindings to the capstone disassembly library
Documentation

capstone-sys

Low-level, unsafe Rust bindings for the Capstone disassembly library.

Crates.io Badge Travis CI Badge Appveyor CI Badge

API Documentation

NOTE: We recommend against using this crate directly. Instead, consider using capstone-rs, which provides a high-level, "Rusty" interface.

Requirements

  • Rust version >= 1.19
    • We export Rust unions, which were first stabilized with release 1.19
  • A toolchain capable of compiling Capstone
    • We build the bundled Capstone with the cc crate

Supported Platforms

Platform Supported
x86_64-apple-darwin X
i686-apple-darwin X
x86_64-pc-windows-msvc X
x86_64-pc-windows-gnu X
i686-pc-windows-msvc X
i686-pc-windows-gnu X
x86_64-unknown-linux-gnu X
i686-unknown-linux-gnu X
x86_64-unknown-freebsd X

Features

You can specify the following features in Cargo.toml:

  • use_bindgen: instead of using the pre-generated Capstone bindings, dynamically generate bindings with bindgen.

Tested Platforms

The following platforms have automated testing:

  • Travis CI
    • x86_64-unknown-linux-gnu
  • AppVeyor
    • x86_64-pc-windows-msvc
    • x86_64-pc-windows-gnu
    • i686-pc-windows-msvc
    • i686-pc-windows-gnu