1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Pure-Rust JVM bytecode generator, JAR SDK indexer, and Rust binding emitter for FLR v2.
//!
//! `fabric-rs-codegen` synthesizes verifiable `.class` files (complete with automatic `StackMapTable`
//! frames) without requiring `javac` or Java ASM at package time:
//!
//! - [`jvm_writer`]: Constant pool builder, bytecode instruction emitter (`CodeWriter`), annotations, and `.class` serializer.
//! - [`class_reader`]: Classfile parser for JAR indexing ([`build_sdk_index_from_jars`]) and constant-pool relocation ([`relocate_class_bytes`]).
//! - [`bootstrap_gen`]: Isolated per-mod `FlrLoader.class`, `RustBootstrap.class`, and optional `NativeBridge.class`.
//! - [`mixin_gen`]: SpongePowered Mixin `.class` synthesis, `MixinTrampolines.class`, `*.mixins.json`, and `*.refmap.json`.
//! - [`subclass_gen`]: Custom Java subclass `.class` emission with `flrHandle`, overrides, and `invokespecial` super bridges.
//! - [`rust_emitter`]: Generates typed Rust wrappers ([`emit_rust_binding`]) used by `bind_class!` and `cargo fabric bindings`.
/// Isolated per-mod loader, `RustBootstrap`, and dynamic `NativeBridge` generators.
/// JVM `.class` reader, constant-pool class relocator, and JAR SDK indexer.
/// Pure-Rust JVM classfile writer with basic-block label patching and `StackMapTable` generation.
/// Mixin classfile, trampoline, config, and Intermediary refmap generators.
/// Rust wrapper struct/method code emitter backing `bind_class!` and `cargo fabric bindings`.
/// Automatic CFG dataflow bytecode analyzer for `StackMapTable` and frame limits.
/// Custom Java subclass `.class` and `SubclassTrampolines` generators.
pub use ;
pub use ;
pub use ;
pub use ;
pub use emit_rust_binding;
pub use generate_subclass_bytes;