{"id":13994603,"url":"https://github.com/x4e/classfile-rs","last_synced_at":"2025-04-30T20:34:01.675Z","repository":{"id":55072619,"uuid":"303217647","full_name":"x4e/classfile-rs","owner":"x4e","description":"JVM classfile parser and writer for Rust","archived":false,"fork":false,"pushed_at":"2021-04-22T22:46:26.000Z","size":524,"stargazers_count":38,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T20:33:54.700Z","etag":null,"topics":["bytecode","classfile","java","jvm","rust"],"latest_commit_sha":null,"homepage":"","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/x4e.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}},"created_at":"2020-10-11T21:40:28.000Z","updated_at":"2025-03-26T08:10:17.000Z","dependencies_parsed_at":"2022-08-14T11:10:26.006Z","dependency_job_id":null,"html_url":"https://github.com/x4e/classfile-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2Fclassfile-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2Fclassfile-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2Fclassfile-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2Fclassfile-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x4e","download_url":"https://codeload.github.com/x4e/classfile-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777797,"owners_count":21642229,"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":["bytecode","classfile","java","jvm","rust"],"created_at":"2024-08-09T14:02:58.767Z","updated_at":"2025-04-30T20:34:01.640Z","avatar_url":"https://github.com/x4e.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# classfile-rs\nSpeedy class file implementation for rust\n\nThis is a library for reading, manipulating, and writing class files.\n\nGoals:\n* Simple, abstract AST\n* Stackmap frame generation\n* Resistant to malicious/malformed class files\n\nThe AST is designed to be more logical and intuitive to a Java developer than the official bytecode\n specification. \n\nFor example, `iconst_0`s are represented as `ldc(0)`s, `invokestatic(...)`s are represented as `invoke(static, ...)`.\nBytecode offsets are also transformed into labels.\nThe constant pool is fully abstracted.\n\nTodos:\n* Stackmap frame generation\n* Class writing\n(Feel free to contribute on these)\n\n## Speed\nThe library should take \u003c1ms to read an averagely sized class file, but can take longer depending on the amount of\n control flow within the class (Label reading is not optimal at the moment).\n\nHere is a benchmark:\n![Throughput benchmark](https://cdn.discordapp.com/attachments/665688984302649354/803225667399057448/unknown.png)\n\n## Examples\n[Reading a class file](https://github.com/x4e/classfile-rs/tree/master/examples/read/src/main.rs)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4e%2Fclassfile-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx4e%2Fclassfile-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4e%2Fclassfile-rs/lists"}