yog-runtime 0.4.1

Yog runtime — native library bridging the Fabric host to Rust mods via JNI.
Documentation

Yog runtime — the native library loaded by the Fabric host.

Exposes JNI entry points (Java_dev_yog_NativeBridge_*) that the host calls, and a stable C ABI (YogApi / YogServer) that mods program against.

Architecture:

  • YogServer — a #[repr(C)] table of standalone JNI-calling functions that mods call to mutate the world.
  • YogApi — a #[repr(C)] table of registration functions; mods call them inside yog_mod_register to subscribe to events.
  • RuntimeHandlers — the runtime's internal event/handler storage. Filled during nativeInit (write), read-only after. The scheduler sub- state uses an inner Mutex for safe addition during event dispatch.