fabric-rs-codegen
Pure-Rust JVM bytecode synthesizer, JAR SDK indexer, and Rust binding generator for FLR v2.
Modules
jvm_writer: Complete pure-Rust JVM.classfile serializer (ClassWriter,CodeWriter,MethodWriter,FieldWriter, annotations, constant pool, and fullStackMapTableframe generation passingjava -Xverify:all).class_reader: Fast JVM classfile parser used both to index Minecraft / Fabric JARs into.flridx(build_sdk_index_from_jars) and to relocate precompiled loader templates (relocate_class_bytes).bootstrap_gen: Generates isolateddev/fabricrs/mod_<clean_id>/RustBootstrap.class,FlrLoader.class(FlrRuntimeLoaderorFlrThinLoader), andNativeBridge.class.mixin_gen&subclass_gen: Emits Mixin classes,MixinTrampolines,*.mixins.json,*.refmap.json, custom Java subclass.classfiles,flrSuper_*invokespecialsuper bridges, andSubclassTrampolines.rust_emitter: Generates typed Rust wrapper structs (emit_rust_binding) poweringbind_class!andcargo fabric bindings.