#disassemble

sys capstone-sys

System bindings to the capstone disassembly library

13 breaking releases

0.15.0 May 2, 2022
0.14.0 Aug 9, 2021
0.13.0 Jul 14, 2021
0.11.0 Mar 17, 2020
0.2.0 Nov 15, 2016

#120 in Debugging

Download history 6537/week @ 2022-11-26 7962/week @ 2022-12-03 7005/week @ 2022-12-10 5940/week @ 2022-12-17 3540/week @ 2022-12-24 5282/week @ 2022-12-31 5260/week @ 2023-01-07 5989/week @ 2023-01-14 4929/week @ 2023-01-21 9041/week @ 2023-01-28 5963/week @ 2023-02-04 7432/week @ 2023-02-11 6155/week @ 2023-02-18 8032/week @ 2023-02-25 8157/week @ 2023-03-04 7603/week @ 2023-03-11

31,279 downloads per month
Used in 34 crates (4 directly)

MIT license

5.5MB
152K SLoC

C 52K SLoC // 0.1% comments Rust 26K SLoC // 0.0% comments Python 22K SLoC // 0.1% comments C# 19K SLoC // 0.1% comments Java 15K SLoC // 0.0% comments OCaml 14K SLoC // 0.0% comments VB6 3K SLoC // 0.2% comments PowerShell 517 SLoC // 0.3% comments Shell 498 SLoC // 0.2% comments C++ 485 SLoC // 0.1% comments Visual Studio Project 311 SLoC Batch 291 SLoC // 0.0% comments RPM Specfile 122 SLoC // 0.0% comments Visual Studio Solution 69 SLoC Prolog 29 SLoC

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.50.0
  • 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.

Dependencies