{"id":28153806,"url":"https://github.com/henryhchchc/mokapot","last_synced_at":"2025-05-15T06:12:19.683Z","repository":{"id":189459191,"uuid":"667268216","full_name":"henryhchchc/mokapot","owner":"henryhchchc","description":"A library for analyzing and manipulating JVM bytecode","archived":false,"fork":false,"pushed_at":"2025-05-14T13:15:22.000Z","size":1366,"stargazers_count":14,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-14T14:41:29.803Z","etag":null,"topics":["ir","java","jvm","rust","ssa","static-analysis"],"latest_commit_sha":null,"homepage":"https://aka.henryhc.net/mokapot","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henryhchchc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["henryhchchc"]}},"created_at":"2023-07-17T06:05:14.000Z","updated_at":"2025-05-13T04:02:48.000Z","dependencies_parsed_at":"2023-12-03T09:32:07.127Z","dependency_job_id":"a57bad47-4f2d-4a39-bde0-202c1d4007be","html_url":"https://github.com/henryhchchc/mokapot","commit_stats":null,"previous_names":["henryhchchc/mokapot"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhchchc%2Fmokapot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhchchc%2Fmokapot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhchchc%2Fmokapot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhchchc%2Fmokapot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryhchchc","download_url":"https://codeload.github.com/henryhchchc/mokapot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254183868,"owners_count":22028590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ir","java","jvm","rust","ssa","static-analysis"],"created_at":"2025-05-15T06:12:18.213Z","updated_at":"2025-05-15T06:12:19.665Z","avatar_url":"https://github.com/henryhchchc.png","language":"Rust","funding_links":["https://github.com/sponsors/henryhchchc"],"categories":[],"sub_categories":[],"readme":"# MokaPot\n\n[![GitHub Repository](https://img.shields.io/badge/GitHub-henryhchchc%2Fmokapot-orange?style=flat-square\u0026logo=GitHub)](https://github.com/henryhchchc/mokapot)\n[![CI - GitHub Actions](https://img.shields.io/github/actions/workflow/status/henryhchchc/mokapot/ci.yml?style=flat-square\u0026logo=githubactions\u0026logoColor=white\u0026label=CI)](https://github.com/henryhchchc/mokapot/actions/workflows/ci.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/henryhchchc/mokapot?style=flat-square\u0026logo=codecov\u0026logoColor=white\u0026label=Coverage)](https://app.codecov.io/gh/henryhchchc/mokapot/)\n[![Crates.io](https://img.shields.io/crates/v/mokapot?style=flat-square\u0026logo=rust\u0026logoColor=white)](https://crates.io/crates/mokapot)\n[![docs.rs](https://img.shields.io/docsrs/mokapot?style=flat-square\u0026logo=docsdotrs\u0026logoColor=white\u0026label=docs%2Frelease)](https://docs.rs/mokapot)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor_Covenant-2.1-4baaaa?style=flat-square\u0026logo=contributorcovenant)](docs/CODE_OF_CONDUCT.md)\n\nMokaPot is a library for analyzing and manipulating JVM bytecode. It is written in Rust for performance and safety.\n\n\u003e [!WARNING]\n\u003e **API Stability:** This project is in an early development stage and breaking changes can happen before v1.0.0.\n\u003e Using this project for production is currently NOT RECOMMENDED.\n\n## Documentation\n\nThe documentation of the released version is available at [docs.rs](https://docs.rs/mokapot).\nThe documentation of the latest commit is available at [github.io](https://henryhchchc.github.io/mokapot/mokapot/)\n\n## Usage\n\n### Adding the dependency\n\nRun the following command in the root directory of your project.\n\n```sh\ncargo add mokapot\n```\n\nAlternatively, to follow the latest commit version, run the following command instead.\nBefore building your project, run `cargo update` to fetch the latest commit.\n\n```sh\ncargo add --git https://github.com/henryhchchc/mokapot.git mokapot\n```\n\n### Parsing a class\n\n```rust\nuse mokapot::jvm::class::Class;\n\nfn parse_class() -\u003e Result\u003cClass, Box\u003cdyn std::error::Error\u003e\u003e {\n    let reader = todo!(\"Some reader for the byte code\");\n    let class = Class::from_reader(\u0026mut reader)?;\n    Ok(class)\n}\n```\n\n### MokaIR\n\nMokaIR is an intermediate representation of JVM bytecode in [mokapot](https://github.com/henryhchchc/mokapot).\nTo learn more, please refer to [docs/MokaIR.md](docs/MokaIR.md)\n\n## Building\n\nMake sure you have the following tools installed:\n\n- The latest stable version of Rust\n- The latest release version of JDK\n\nCompile the project and run the tests with the following command.\n\n```bash\ncargo build --all-features\ncargo test --all-features\n```\n\n## Contributing\n\nCool. Contributions are welcomed. See the [contribution guide](docs/CONTRIBUTING.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhchchc%2Fmokapot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryhchchc%2Fmokapot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhchchc%2Fmokapot/lists"}