15 breaking releases

new 0.17.0 Feb 4, 2025
0.16.0 Feb 25, 2024
0.15.0 May 2, 2022
0.14.0 Aug 9, 2021
0.2.0 Nov 15, 2016

#224 in Debugging

Download history 19203/week @ 2024-10-22 22623/week @ 2024-10-29 28774/week @ 2024-11-05 24839/week @ 2024-11-12 29442/week @ 2024-11-19 24061/week @ 2024-11-26 32100/week @ 2024-12-03 33336/week @ 2024-12-10 28514/week @ 2024-12-17 17479/week @ 2024-12-24 20546/week @ 2024-12-31 30104/week @ 2025-01-07 30440/week @ 2025-01-14 31296/week @ 2025-01-21 26308/week @ 2025-01-28 23697/week @ 2025-02-04

118,913 downloads per month
Used in 51 crates (4 directly)

MIT license

32MB
1M SLoC

Bitbake 859K SLoC // 0.1% comments C 52K SLoC // 0.1% comments Rust 25K 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

capstone-sys

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

Crates.io Badge

API Documentation

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

Requirements

  • Minimum Rust Version: 1.70.0
  • A toolchain capable of compiling Capstone
    • We build the bundled Capstone with the cc crate

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