14 breaking releases

0.16.0 Feb 25, 2024
0.15.0 May 2, 2022
0.14.0 Aug 9, 2021
0.13.0 Jul 14, 2021
0.2.0 Nov 15, 2016

#323 in Debugging

Download history 8747/week @ 2023-12-06 8611/week @ 2023-12-13 7840/week @ 2023-12-20 6692/week @ 2023-12-27 7908/week @ 2024-01-03 9079/week @ 2024-01-10 10791/week @ 2024-01-17 10744/week @ 2024-01-24 11015/week @ 2024-01-31 10080/week @ 2024-02-07 10771/week @ 2024-02-14 11110/week @ 2024-02-21 10353/week @ 2024-02-28 11591/week @ 2024-03-06 13980/week @ 2024-03-13 15054/week @ 2024-03-20

52,534 downloads per month
Used in 44 crates (3 directly)

MIT license

32MB
1M SLoC

Bitbake 859K SLoC // 0.1% comments 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 Shell 542 SLoC // 0.2% comments PowerShell 520 SLoC // 0.3% 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 Cython 44 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