Low-level, unsafe Rust bindings for the Capstone
disassembly library.
NOTE: We recommend against using this crate directly. Instead, consider using capstone-rs, which provides a high-level, "Rusty" interface.
- 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
- We build the bundled Capstone with the
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 |
You can specify the following features in Cargo.toml
:
use_bindgen
: instead of using the pre-generated Capstone bindings, dynamically generate bindings withbindgen
.
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