Crates.io | mokapot |
lib.rs | mokapot |
version | 0.17.0 |
source | src |
created_at | 2023-08-07 10:07:20.699475 |
updated_at | 2024-09-19 09:58:49.136035 |
description | A library for ananlyzing JVM bytecode |
homepage | |
repository | https://github.com/henryhchchc/mokapot |
max_upload_size | |
id | 937802 |
size | 476,756 |
MokaPot is a Java bytecode analysis library written in Rust.
[!WARNING] API Stability: This project is in an early development stage and breaking changes can happen before v1.0.0. Using this project for production is currently NOT RECOMMENDED.
The documentation of the released version is available at docs.rs. The documentation of the latest commit is available at github.io
Run the following command in the root directory of your project.
cargo add mokapot
Alternatively, to follow the latest commit version, run the following command instead.
Before building your project, run cargo update
to fetch the latest commit.
cargo add --git https://github.com/henryhchchc/mokapot.git mokapot
use mokapot::jvm::class::Class;
fn parse_class() -> Result<Class, Box<dyn std::error::Error>> {
let reader: std::io::Read = todo!("Some reader for the byte code");
let class = Class::from_reader(reader)?;
Ok(class)
}
MokaIR is an intermediate representation of JVM bytecode in mokapot. To learn more, please refer to docs/MokaIR.md
Make sure you have the following tools installed:
Compile the project and run the tests with the following command.
cargo build --all-features
cargo test --all-features
Cool. Contributions are welcomed. See the contribution guide for more information.