#bindings #instructions #analyzer #file #bytecode #add #shuriken

shuriken-bindings

Safe bindings for the [Shuriken bytecode analyzer

3 stable releases

new 1.0.2 Feb 9, 2025
1.0.0 Feb 8, 2025

#17 in #analyzer

Download history

67 downloads per month

Apache-2.0

250KB
5.5K SLoC

Contains (APK file, 4KB) test_files/test_zip.apk

shuriken-bindings

GitHub Actions Workflow Status Crates.io Version docs.rs

Safe Rust bindings for the Shuriken bytecode analyzer.

Usage

Add this crate to your Cargo.toml file:

cargo add shuriken-bindings

You must have downloaded and built the Shuriken analyzer library to use this crate. Please refer to their installation instructions for the relevant details.

When building your crate with the bindings you must set the BASE_FOLDER environment variable to point to the build folder of Shuriken. You can use the config.toml file for Cargo to set this up. In you crate root folder, add the following to .cargo/config.toml (requires Cargo version 1.56 and up):

[env]
BASE_FOLDER = "/path/to/your/build/folder"

Current status

We only provide bindings for the C API for the Shuriken analyzer. As of this writing, some features are not yet available through the C API. When features are added we will update to bindings to support them.

No runtime deps

~0–2MB
~38K SLoC