{"id":15069189,"url":"https://github.com/adiepenbrock/rjvm","last_synced_at":"2026-04-07T05:31:22.720Z","repository":{"id":224945031,"uuid":"763231571","full_name":"adiepenbrock/rjvm","owner":"adiepenbrock","description":"Parse JVM class files with Rust","archived":false,"fork":false,"pushed_at":"2025-06-24T13:43:41.000Z","size":81,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-17T00:14:42.452Z","etag":null,"topics":["jvm","parsing","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adiepenbrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-25T22:02:36.000Z","updated_at":"2025-06-24T13:43:42.000Z","dependencies_parsed_at":"2024-03-11T00:23:28.628Z","dependency_job_id":"98808476-c69f-49f2-aed5-a03dafcf31c3","html_url":"https://github.com/adiepenbrock/rjvm","commit_stats":null,"previous_names":["adiepenbrock/rjvm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adiepenbrock/rjvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiepenbrock%2Frjvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiepenbrock%2Frjvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiepenbrock%2Frjvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiepenbrock%2Frjvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adiepenbrock","download_url":"https://codeload.github.com/adiepenbrock/rjvm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiepenbrock%2Frjvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31501903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jvm","parsing","rust"],"created_at":"2024-09-25T01:40:55.638Z","updated_at":"2026-04-07T05:31:22.699Z","avatar_url":"https://github.com/adiepenbrock.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rjvm\n\n`rjvm` is a Rust crate that enables parsing of [JVM class files](https://docs.oracle.com/javase/specs/jvms/se21/html/jvms-2.html#jvms-2.1). This crate supports Java at least up to Java SE 21.\n**The scope of this crate is not to create a JVM, but to parse and write (in the future) JVM class files**.\n\n## Getting Started\n\nTo integrate `rjvm` into you project, simply add it as a dependency to your `Cargo.toml` file:\n```toml\n[dependencies]\nrjvm = \"0.1.0\"\n```\n\nTo parse a class file, follow these steps:\n\n- Read the class file into a byte array\n- Create a `BufferedReader` from the byte array\n- Initialize a mutable `ConstantPool` to store the constant pool entries\n- Parse the ClassFile using the `ClassFile::decode` method.\n\n```rust\nlet file = include_bytes!(\"../path/to/your/class/file.class\");\nlet mut buffer = rjvm::decoder::BufferedReader::new(file);\nlet mut constant_pool = rjvm::types::constants::ConstantPool::new();\nlet class_file = rjvm::types::elements::ClassFile::decode(\u0026mut buffer, \u0026mut constant_pool);\n```\n\n## Examples\nFind some simple examples on how to use `rjvm` in the `examples` directory of this repository.\n\n- [`decoding.rs`](https://github.com/adiepenbrock/rjvm/blob/main/examples/decoding.rs): shows an example of how to parse a class file.\n- [`instructions.rs`](https://github.com/adiepenbrock/rjvm/blob/main/examples/instructions.rs): shows an example of how to parse a class file and print all methods with their instructions.\n\n## Roadmap\n- [x] Parse class files with all related elements\n- [x] Manage constant pools\n- [ ] Read JAR files\n- [ ] Write class files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadiepenbrock%2Frjvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadiepenbrock%2Frjvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadiepenbrock%2Frjvm/lists"}