| Crates.io | java-oxide-gen |
| lib.rs | java-oxide-gen |
| version | 0.1.0 |
| created_at | 2025-12-11 18:54:06.812684+00 |
| updated_at | 2025-12-11 18:54:06.812684+00 |
| description | Code generator for binding to JVM APIs from Rust |
| homepage | |
| repository | https://github.com/OxidizeMC/java-oxide-gen |
| max_upload_size | |
| id | 1980316 |
| size | 193,314 |
java-oxide-genEasily generate type-safe bindings for calling Java APIs from Rust.
static final) are converted to Rust constants.java-spaghetti-gen (& jni-bindgen)This project started out as a fork of java-spaghetti-gen, which is originally a fork jni-bindgen.
java-spaghetti-gen took the route of generating "mini-bindings", that are tailored specifically to your project, and can be embeded within your crate. This design, however, is not suited for large-scale bindings that are intended to be used as/in libraries. java-oxide partially goes back to the design of jni-bindgen, it generates crates with bindings for a whole java API (or multiple).
A list of differences from java-spaghetti-gen are:
crate::...) instead of relative paths (super::...), because relative path chains can be confusing to read.java-spaghetti is stale, and slightly broken on newer rust versions.A list of differences from jni-bindgen are listed in java-spaghetti-gen's README.
.toml configuration formatcrate::...)ristretto_classfile instead of cafebabeLicensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)