{"id":23968765,"url":"https://github.com/orasunis/jbcrs","last_synced_at":"2025-10-08T19:24:50.844Z","repository":{"id":62441279,"uuid":"122826248","full_name":"orasunis/jbcrs","owner":"orasunis","description":"A Library to support reading and writing of java class files.","archived":false,"fork":false,"pushed_at":"2018-03-23T22:08:52.000Z","size":107,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T12:00:23.749Z","etag":null,"topics":["class","classfile","classfile-parser","crates","java","jvm","parsing","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orasunis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-25T10:34:47.000Z","updated_at":"2024-05-31T17:12:53.000Z","dependencies_parsed_at":"2022-11-01T22:01:59.011Z","dependency_job_id":null,"html_url":"https://github.com/orasunis/jbcrs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orasunis/jbcrs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasunis%2Fjbcrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasunis%2Fjbcrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasunis%2Fjbcrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasunis%2Fjbcrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orasunis","download_url":"https://codeload.github.com/orasunis/jbcrs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasunis%2Fjbcrs/sbom","scorecard":{"id":711622,"data":{"date":"2025-08-11","repo":{"name":"github.com/orasunis/jbcrs","commit":"723185189c8422b1a1d1eb3a0bacb59ed00cf00a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":4,"reason":"binaries present in source code","details":["Warn: binary detected: examples/resources/AnyAnnotation.class:1","Warn: binary detected: examples/resources/CustomLinkedList$Element.class:1","Warn: binary detected: examples/resources/CustomLinkedList$Iter.class:1","Warn: binary detected: examples/resources/CustomLinkedList.class:1","Warn: binary detected: examples/resources/Fibonacci.class:1","Warn: binary detected: examples/resources/FizzBuzzStream.class:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: UNLICENSE:0","Info: FSF or OSI recognized license: The Unlicense: UNLICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T08:20:18.890Z","repository_id":62441279,"created_at":"2025-08-22T08:20:18.891Z","updated_at":"2025-08-22T08:20:18.891Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000704,"owners_count":26082805,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["class","classfile","classfile-parser","crates","java","jvm","parsing","rust"],"created_at":"2025-01-07T00:46:25.756Z","updated_at":"2025-10-08T19:24:50.814Z","avatar_url":"https://github.com/orasunis.png","language":"Rust","readme":"[![](https://img.shields.io/crates/v/jbcrs.svg)](https://crates.io/crates/jbcrs) [![](https://docs.rs/jbcrs/badge.svg)](https://docs.rs/jbcrs)\n# JBcRs\n**JBcRs is a Library, written in rust, to support reading and writing of java class files.**\n\nThis library is not close from being finished,\nbut certain features have already been implemented:\n\n- **Basic parsing:**\n  A class file is parsed rather primitive:\n  - You have access to the constant pool.\n    Names, Descriptors and more are represented as `u16`,\n    Indexing into the pool must be done manually.\n    No validation of indices when parsing will be done.\n  - Access Flags are decoded using the bitflags crate\n    to provide a better experience.\n  - Attributes are always parsed.\n    This might be changed since it allows attackers\n    to craft invalid Debug Attributes,\n    which don't play a serious role in executing the code,\n    Parsing the entire class file then might not work,\n    since an error will be returned.\n- More will be coming soon\u0026trade;.\n\n---\n# Getting Started:\n\nFirst, add this library as a dependency to your Cargo.toml\n```toml\n[dependencies]\njbcrs = \"0.1.0\"\n```\n\nNow, you should choose if you want to use `basic` or `advanced`,\nbut since `advanced` is not yet implemented, `basic` must be used.\n\n# Basic\nWe want to parse a class from a byte array\nand print its version, access flags and name.\nOf course you could use std::fs::File or a zip library,\nbut showing this is not the purpose of this tutorial.\n\n```rust\nuse jbcrs::basic;\n\n// You got the bytes from any possible source.\nlet bytes: \u0026[u8] = [0xCA, 0xFE, 0xBA, 0xBE];\n\n// After parsing the class file,\n// you will get the constant pool\n// and the class itself.\n// You don't have to annotate the types here.\nlet (constant_pool, class): (basic::Pool, basic::Class) = basic::parse(bytes)\n    .expect(\"could not parse class file\");\n\n// Print its major and minor version:\nprintln!(\"version: {}.{}\", class.major_version, class.minor_version);\n\n// Access Flags can be printed human readable\nprintln!(\"access: {}\", class.access_flags);\n\n// Printing the name requires us to use the constant pool.\nprintln!(\"name: {}\", constant_pool.get_class_name(class.name).expect(\"could not get class name\"));\n```\n\n---\n# Resources\n[Java Virtual Machine Specification (Java SE 9)](https://docs.oracle.com/javase/specs/jvms/se9/jvms9.pdf)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forasunis%2Fjbcrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forasunis%2Fjbcrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forasunis%2Fjbcrs/lists"}