[GH-ISSUE #5109] Proposal (sketch): runtime mod loading via stable-ABI native plugins — a vision for modding's future #1556

Open
opened 2026-11-02 15:47:57 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @BlueGradientHorizon on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5109

First of all - this is genuinely impressive work. A clean-room 26.3 client in Rust with this level of parity discipline (harnesses, oracles, the port ledger) is something I haven't seen anywhere else. Huge respect to everyone involved.

That said, I think the current modding direction - WASM removed (#3350), code mods only as native mixin bundles compiled into the game is a dead end, and I'd like to make the case for eventually building a runtime mod-loading mechanism back.

Minecraft arguably became what it is because modding was easy: download a ready .jar, drop it in a folder, launch. A couple of minutes, zero knowledge required. The current approach reverses all of that:

  1. Weak hardware is locked out. A native build means the launcher downloads its own Rust toolchain (~0.5-1.7 GB), the pinned source, hundreds of MB of crates, and then compiles the whole game in release (~7-12 min on a desktop, 1.5-2 GB of native/target/). On a weak laptop, an HDD, or SteamOS (where native builds don't work at all per native-mods.md), this is not a real option.
  2. Closed-source mods (ARR and similar) have nowhere to go. A .hnmod is its source (mods.md: "A native mod's .hnmod is its source"), and registry listing requires a public GitHub repo with review. An author who doesn't want to publish source can only hand out zip files with readable Rust. There is no binary distribution path by design.
  3. Every add/update means a recompile. Adding, updating, or removing one code mod rebuilds horizon-client (~3 min in the best case). A unique modpack becomes a 10-minute build session instead of a 2-minute drag-and-drop.

I understand the rationale, the WIT sandbox couldn't express what hook APIs now do (block entities, server menus, redstone, scheduled ticks, mobs, mod net), and building reviewed source locally sidesteps the "run someone else's binary" trust problem. But the cost is that code modding changes its audience from "any player" to "a player with a desktop and 10 free minutes".

My hope is that someday a runtime mechanism returns, even a narrow one (stable hook ABI, signed prebuilt game variants per mod-set from CI, or an opt-in sandbox for binary mods) so the content mods stay one-click for everyone, and code mods can be one-click too.

I did a small brainstorming session with an AI agent, and here is what we came up with.

Proposal: stable-ABI native plugins (cdylib) instead of source patches (.hnmod)

Keep everything Rust-only and native-speed, but stop recompiling the game per mod.

How it would work

  1. horizon-abi — a small versioned stable-ABI crate, versioned per domain (e.g. worldgen:1, blocks:3), not one global u32. #[repr(C)], extern "C", opaque handles, no generics/Vec<String>/dyn on the boundary. This is the only contract a mod links against. Never horizon-client internals directly.
  2. horizon-sdk — a safe, idiomatic, header-only wrapper over abi. Compiled into the mod, so #[inline(always)] newtypes (EntityRef, Game, ServerCtx) optimize to the same asm as direct access. This is where canonical Rust lives: iterators, Result, lifetimes, #[mixin] proc-macros.
  3. Mods ship as compiled cdylib (.so/.dll/.dylib), one artifact per os x arch (win/linux/mac x x86_64/aarch64). The registry keeps all binaries per version, the launcher downloads only the client's own. No source rebuild on player PCs — this fixes weak PCs and closed-source mods at once.
  4. Hooks, not patches — but only declared slots. Today's [[injection]] target = Game::native_key becomes a stable exported hook slot with a signature hash, e.g. horizon_hook_world_tick__v7__a3f9c1. The loader resolves it with dlsym at runtime and installs a retour-style detour only if the hash matches. No mod: one predictable branch (~0 cost). With mod: one indirect call. Cancellable / replace / collect hooks reuse the listen / cancel / replace / collect semantics already merged into main via #5638/#6216 (an explicit encoding over FFI plus multi-mod order, not a raw detour). MODIFY_VARIABLE / RETURN patches are not detoured — they become explicit upstream slots (see below).
  5. Hot loop rule: boundary is O(1) per frame/chunk. The host hands the mod contiguous slices or views (on_chunk_tick(pos: *const f32, vel: *mut f32, n: usize), ChunkView { get, set, biome } for worldgen), the tight loop lives inside the mod where LLVM/LTO sees it. Private fields via runtime-queried offsets cached in a static — one add in the hot loop. Old mod.so built against sdk keeps working on a new client as long as the domain symbols it uses are unchanged.

What changes for a mod — zoom example

Today (horizon-mixin.toml + source patch):

[[injection]]
id = "key"
target = "horizon_client::game::native_hooks::Game<'_>::native_key"
helper = "key.rs"
bindings = [{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" }]
// key.rs, compiled TOGETHER with the game
fn zoom_key(game: &mut crate::game::Game<'_>, key: &str, pressed: bool) {
    use crate::game::official_zoom as zoom;
    if !game.native_on(zoom::ID) { return; }
    let bound = game.native_mod_key(zoom::ID, zoom::KEY, zoom::DEFAULT_KEY);
    ...
}

Proposed:

// src/hooks.rs, compiled INSIDE mod.so against horizon-sdk
#[horizon_sdk::mixin(Game::native_key)]
fn zoom_key(game: &mut Game, key: &str, pressed: bool) {
    if !game.is_enabled(ID) { return; }
    if key != game.mod_key(ID, KEY, DEFAULT_KEY) { return; }
    zoom::key(game.is_playing(), pressed, |n| game.setting(ID, n));
}

runtime.rs (settings, STATE, all #[test]) moves over 1:1 — it never touched Game anyway. horizon-mixin.toml disappears, compatibility.json: horizon_revision becomes api_version per domain. Same pattern covers coords-hud/fps-overlay/keystrokes/minimap (a handful of HEAD hooks each); recipes only rewrites its glue.rs into From impls over repr(C) slices; smp keeps its pure-logic files untouched and rewrites only glue.rs plus one-function hook shims.

The zoom pattern covers HEAD hooks with primitives. A complex mod needs more: tectonic-horizon at 75c5a2c (2026-11-01; taken as an example; mixins/tectonic_horizon/horizon-mixin.toml) uses 8 injections + 4 modules — plain HEAD (mod-menu-entry, worldgen-registries, river-decoration, activate-world), cancellable HEAD (parameter-seeds -> ControlFlow<[u64; 2]>, increased-build-height -> ControlFlow<Option<LevelHeight>>), MODIFY_VARIABLE (snow-height: local start at STORE), RETURN (monument-depth: BoundingBox, magic box 58x23x58 at Y=39), and [[module]] in-crate code (terrain tables, runtime lower/populate, selection as impl ... for super::WorldgenOverrides, decoration with use crate::registry::BlockStateId, crate::worldgen::..., super::{GeneratorData, ProtoChunk} plus horizon_core::density/noise/random). For that class the slot is a domain API, not a detour — details per kind below.

What changes for a mod — tectonic example (per injection kind)

Source: tectonic-horizon @ 75c5a2c (2026-11-01; taken as an example — every Today snippet below verified against this commit). Each kind below shows Today (.hnmod source patch) → Proposed (inside mod.so vs horizon-sdk).

1. HEAD plain — mod-menu-entry (Game::native_mods, &mut Vec<NativeMod>).

Today:

[[injection]]
id = "mod-menu-entry"
kind = "HEAD"
target = "horizon_client::game::native_hooks::Game<'_>::native_mods"
helper = "menu.rs"
// menu.rs, compiled TOGETHER with the game
fn register(mods: &mut Vec<NativeMod>) {
    if mods.iter().any(|e| e.id == "tectonic_horizon") { return; }
    mods.push(NativeMod { id: "tectonic_horizon".into(), title: "Tectonic-Horizon 0.3.0".into(), .. });
}

Proposed: no code hook — declarative manifest. The host reads it, no Vec<NativeMod> over FFI:

# mod.toml (or Cargo [package.metadata.horizon])
[menu-entry]
id = "tectonic_horizon"
title = "Tectonic-Horizon 0.3.0"
description = "..."
2. HEAD with rich types — worldgen-registries (WorldgenOverrides::apply, &WorldgenOverrides + &str + &mut BTreeMap).

Today:

// registries.rs, inside host crate
fn registries(overrides: &WorldgenOverrides, bundle: &str, base: &mut BTreeMap<String, String>) {
    let enabled = overrides.mod_enabled("tectonic_horizon");
    tectonic_horizon::set_active(enabled);
    if enabled { tectonic_horizon::populate(bundle, base, tectonic_horizon::config()); }
}

Proposed: BTreeMap never crosses the boundary — JSON strings via arena:

// src/worldgen.rs, compiled INSIDE mod.so
#[horizon_sdk::worldgen_overlay] // versioned per domain: worldgen:1
fn overlay(bundle: Str, base: JsonMap, out: &mut JsonVec) -> i32 {
    if !sdk::is_enabled(ID) { return 0; }
    // pure logic from runtime.rs: lower()/populate() over strings
    tectonic::populate(bundle.as_str(), base.iter_str(), out, &config())
}
3. HEAD cancellable — parameter-seeds (seed_from_hash -> ControlFlow<[u64; 2]>).

Today:

fn seeds(name: &str) -> std::ops::ControlFlow<[u64; 2]> {
    if let Some(path) = name.strip_prefix("tectonic:parameter/") {
        return std::ops::ControlFlow::Break(seed_from_hash(&format!("minecraft:{path}")));
    }
    std::ops::ControlFlow::Continue(())
}

Proposed: replace contract from #6216 (first Some wins), primitives only:

#[horizon_sdk::seed_remap] // cancel/replace semantics
fn seed_remap(name: Str, out: *mut [u64; 2]) -> bool {
    let Some(path) = name.as_str().strip_prefix("tectonic:parameter/") else { return false; };
    unsafe { *out = sdk::seed_from_hash(&format!("minecraft:{path}")); }
    true // claimed — host skips its own hash
}
4. MODIFY_VARIABLE — snow-height (height_adjusted, local start at STORE, $value: i32 -> i32).

Today:

[[injection]]
id = "snow-height"
kind = "MODIFY_VARIABLE"
target = "horizon_world::worldgen::biome_temperature::BiomeTemperatureSettings::height_adjusted"
variable = { name = "start", ordinal = 0, at = "STORE" }
fn snow(value: i32) -> i32 {
    let config = crate::worldgen::overrides::tectonic_horizon::config();
    value.saturating_add(if crate::worldgen::overrides::tectonic_horizon::active() && config.general.mod_enabled {
        config.general.snow_start_offset
    } else {
        0
    })
}

Proposed: not a detour — an explicit slot. The fragile local disappears:

#[horizon_sdk::snow_offset] // worldgen:1, host calls instead of STORE-patching
fn snow_offset() -> i32 {
    if sdk::is_active() && config().general.mod_enabled { config().general.snow_start_offset } else { 0 }
}
// host: start = base_start.saturating_add(mod_snow_offset());
5. RETURN — monument-depth (make_bounding_box -> BoundingBox).

Today:

fn monuments(value: BoundingBox, y: i32, width: i32, height: i32, depth: i32) -> BoundingBox {
    if active() && config().general.mod_enabled && (y, width, height, depth) == (39, 58, 23, 58) {
        return value.moved([0, config().oceans.monument_offset, 0]);
    }
    value
}

Proposed: explicit slot with repr(C) box, no internal return patching:

#[horizon_sdk::structure_box] // worldgen:1
fn structure_box(kind: StructureKind, mut b: BoxC) -> BoxC {
    if kind == StructureKind::Monument && (b.y, b.w, b.h, b.d) == (39, 58, 23, 58)
        && sdk::is_active() && config().general.mod_enabled {
        b.y += config().oceans.monument_offset;
    }
    b
}
6. HEAD cancellable with struct return — increased-build-height (level_height -> ControlFlow<Option<LevelHeight>>).

Today: reads host internals (overrides.entries(DIMENSIONS), entries(DIMENSION_TYPES)) to decide.

fn height(overrides: &WorldgenOverrides, level: &str) -> ControlFlow<Option<LevelHeight>> {
    let config = tectonic_horizon::config();
    if overrides.mod_enabled("tectonic_horizon") && config.general.mod_enabled
        && config.global_terrain.increased_height
        && level == "minecraft:overworld"
        && overrides.entries(DIMENSIONS).all(|(id, _)| id != level)
        && overrides.entries(DIMENSION_TYPES).all(|(id, _)| id != level) {
        return Break(Some(LevelHeight { min_y: -64, height: 704, logical_height: 704, has_skylight: true }));
    }
    Continue(())
}

Proposed: host answers the queries, mod only decides on primitives:

#[horizon_sdk::level_height] // worldgen:1, replace contract
fn level_height(level: Str, out: *mut LevelHeightC) -> bool {
    if level.as_str() != "minecraft:overworld" { return false; }
    if !(sdk::is_enabled() && config().global_terrain.increased_height) { return false; }
    if sdk::worldgen_has_override(level.as_str()) { return false; } // host-side entries() check
    unsafe { *out = LevelHeightC { min_y: -64, height: 704, logical: 704, skylight: true }; }
    true
}
7. HEAD chunk batch — river-decoration (Decoration::decorate, &Arc<GeneratorData> + i64 + &WorkerState + &mut [ProtoChunk; 9]).

Today (inside host crate, full internal access):

fn river_features(data: &Arc<GeneratorData>, seed: i64, worker: &WorkerState, region: &mut [ProtoChunk; 9]) {
    if worker.structures_only { return; }
    if let Err(error) = crate::worldgen::generator::tectonic_decoration::decorate(data, seed, region) {
        panic!("[Tectonic-Horizon] river decoration failed: {error}");
    }
}
// + decoration.rs builds DensityCompiler/DensityRegistry/Xoroshiro samplers,
//   calls chunk.block_name/set_block_worldgen/biome_at — all crate::/super:: items

Proposed: host owns GeneratorData/samplers/ProtoChunk; mod gets a view + field callback. No Arc, no DensityCompiler in the mod:

#[horizon_sdk::decorate_chunk] // worldgen:1, O(1) per chunk
fn decorate(view: &mut ChunkView, seed: u64, ctx: &DecorCtx) -> i32 {
    if !sdk::is_active() || view.is_decorated() { return 0; }
    // ctx.river_at(x,y,z) is the host's sampler; view.get/set/biome are host calls
    rivers::decorate(view, seed, ctx.river_at, ctx.lantern_field)
}

The OnceLock<Mutex<Vec<Arc<Samplers>>>> cache in decoration.rs moves host-side.

8. HEAD lifecycle — activate-world (shared_data_with, &WorldgenOverrides + ModList::load, game_home, forget_shared_data).

Today:

fn activate(overrides: &WorldgenOverrides) {
    let previous = tectonic_horizon::active();
    let menu = crate::mod_list::ModList::load(&crate::logging::game_home());
    tectonic_horizon::set_active(!menu.disabled.contains("tectonic_horizon"));
    let enabled = overrides.mod_enabled("tectonic_horizon");
    tectonic_horizon::set_active(enabled);
    // Stock upstream's cache key has no mod flags. Invalidate it when its live switch changes.
    if previous != enabled { forget_shared_data(); }
}

Proposed: lifecycle events, host owns cache + mod list:

#[horizon_sdk::on_world_open] // lifecycle domain
fn on_world_open(env: &WorldEnv) {
    sdk::set_active(env.mod_enabled(ID)); // host already merged menu + per-world flag
    // forget_shared_data() equivalent is host's invalidate_cache_if(changed)
}
9. [[module]] — terrain / runtime / selection / decoration.

Today: compiled into crates/horizon-world (file = "crates/horizon-world/src/worldgen/overrides.rs"), so use crate::... / super::... works.

Proposed:

  • terrain.rs (BASE/MOD/TALL const tables) → data/ JSON files in the .hmod, no Rust.
  • runtime.rs (Config, lower, populate, tests) → pure mod.so code over Str/JsonMap (unit-tested vs fake ApiTable); tectonic:config_* codecs lowered host-side.
  • selection.rs (impl TectonicWorldSelection for super::WorldgenOverrides) → manifest flag per_world_selection = true, host implements.
  • decoration.rs → see (7); the use crate::... / super:: imports disappear because the APIs they used (DensityRegistry::from_json, decode_noise, BlockStateId, set_block_worldgen) become host calls behind ChunkView / DecorCtx.

Pros vs current .hnmod

  • No 7–12 min rebuild, no toolchain on player machines. Weak PCs just download a small binary.
  • Closed-source mods possible without leaking code; review happens on behavior + manifest permissions + sigstore/minisign, reproducible builds stay verifiable.
  • Mods survive client updates when the API domains they use didn't change — the current horizon_revision pin breaks on any commit.
  • Same Rust, same speed: hot-loop code is still Rust in the mod crate, no Lua/WASM boundary per entity.
  • Normal tooling returns: cargo add horizon-sdk, rust-analyzer, docs.rs, cargo test against a fake ApiTable instead of rebuilding the whole game for checks.

Remaining cons (honest)

  • Arbitrary native code on clients — needs a real trust model: per-mod permissions, signing, revoked.toml already exists; fs/net access is reviewed via manifest, not technically enforced (why not a real sandbox — see the Sandbox section below).
  • unsafe boundary to maintain: #[repr(C)] layout asserts, catch_unwind on every extern "C" entry, Send/Sync audits, no panics/async/allocation across FFI.
  • For consistent and equal support of all OS/arch combinations supported by the project, a modder must upload binaries for every os/arch combo without exception. That is up to 6 binaries per release to build/host/CI — needs infra builds (GitHub Actions matrix does this well) so authors without a given machine still ship for it.
  • Hook-slot discipline per domain forever: hook points only ever added, never renamed; per-symbol signature hashes; breaking changes bump that domain's major and old mods fail fast ("built for worldgen 1, client offers 2") instead of UB. This matters more, not less, because the catalog moves fast (the API number went from double to triple digits over a single weekend; native-hooks.json at the repo root plus tools/native-hook-fragments/), which is exactly why discipline must be per domain rather than one global number.
  • If there is no slot where a modder needs one, they must request it upstream and wait for the next API release. MODIFY_VARIABLE / RETURN are the most fragile patches (local ordinals, STORE sites, struct layout), so turning them into explicit slots (native_snow_offset, native_structure_box) is the right price — requested via the existing tools/native-hook-fragments/ + stamp_native_hooks.py process. Today's source mixins stay as the incubator: a working Tier 2 patch justifies the Tier 1 slot proposal.
  • Rich types (BTreeMap<String,String>, Arc<GeneratorData>, ProtoChunk) and [[module]] in-crate access (crate:: / super::, DensityCompiler, XoroshiroRandom) cannot cross a .so boundary — they need the domain views above, so the ABI is ~12 narrow domain interfaces (lifecycle/server, worldgen, blocks/behaviour, block-entity + machines, items, entities/mobs, guards/players, menus/screens, loot/recipes, render/HUD, net, data/content), each versioned separately.

Sandbox: options considered, and why this model has none

For the record, every sandbox shape was looked at and rejected for this architecture — not from dislike, but because none survives contact with «arbitrary compiled machine code in the game's own process»:

  • WASM-component sandbox (the only production-proven in-process one). Firefox's RLBox compiles untrusted libs to WASM and back (wasm2c): code physically cannot jump outside its region or touch foreign memory, overhead is single-digit percent. But that is a compiler-cooperation deal — the mod must be built to a constrained target. Applied here it is the old WASM path with a new name, and it reintroduces exactly the expressiveness ceiling the hook APIs outgrew (plus a mandatory batch/copy boundary on every hot loop). A different tier, not this proposal.
  • Out-of-process mod host (seccomp + Landlock + IPC/shared memory, cf. Google's Sandboxed API/Sandbox2). Real isolation with a tight per-library syscall policy — at microseconds per boundary crossing instead of nanoseconds. Fine for logic, fatal for the render/worldgen hot loops this proposal keeps at one indirect call.
  • Hardware domains (Intel MPK/PKU à la ERIM, <1% at 100k switches/s). The policy register is writable from userspace, so the sandbox must forbid itself from touching it — binary inspection plus syscall filtering (Hodor, Donky, Jenny), 16 domains max, per-core quirks. The one Rust-specific attempt (PKRU-Safe, patched rustc + LLVM passes) is a research prototype tied to a custom toolchain and CPUs with the pku flag — not shippable to random player hardware. CHERI/Morello, ARM MTE/PAC, TME-Box are further out still.
  • The RLBox «last mile» lesson applies to all of the above: the isolator is the easy part; the hard part is retrofitting the host to treat every value crossing the boundary as hostile (taint everything, validate everything). That would double the Host API work while the hook catalog is still growing by dozens of points per weekend.

So this proposal is honest about what it is: cdylib plugins are full-trust native code, contained by signing, review, per-mod permission manifests and revoked.toml — a trust model, not a sandbox. If the project ever wants untrusted-code execution, that is a separate, complementary tier (sandboxed logic mods through batch APIs), not a modification of this one.

Maintenance

API evolves additively per domain, checked in CI by the catalog diff (native-hooks.json at the repo root plus tools/native-hook-fragments/, stamped by tools/stamp_native_hooks.py) + semver-checks on horizon-abi. Launcher resolves (domain_versions, os, arch) from index.json. sdk is semver'd with the domain majors; old mods keep their bundled sdk and keep loading. Breaking changes bump that domain's major and old mods fail fast with "built for worldgen 1, client offers 2" instead of UB.

Scope of work (from HEAD fd57b86, 2026-11-02)

Ground already laid by #5446/#5909/#6216, all in main: crates/horizon-client/src/mod_api.rs (~23 KB hand-written) + mod_api/generated.rs (~444 KB) + mod_api/generated_host.rs (~54 KB), generated by xtask/src/mod_api.rs (~70 KB) from native-hooks.json (~63 KB catalog); game/native_hooks.rs (~422 KB) with one dispatch line per hook body; entry.rs with main() + main_with(mods); launcher side launcher/src/native_mods.rs (~155 KB) + launcher/src/native_mods/{api,crates,dependencies,inject,inject_cache}.rs. What follows reuses all of it — nothing below redesigns hooks, only how mods attach:

  1. Reuse as-is: the Hooks/Host/level-host traits, the four contracts, attachments and inter-mod dependency order from #6216 become the sdk surface; native-hook-fragments/ + stamping stays the intake for new slots.
  2. New crate horizon-abi (small, the only versioned contract): repr(C) types per domain (lifecycle, worldgen, blocks/behavior, block-entity+machines, items, entities/mobs, guards/players, menus/screens, loot/recipes, render/HUD, net, data/content), API_VERSION per domain, canonical-signature hashing. No game types leak in.
  3. Generator extension (xtask mod-api): from the same native-hooks.json, additionally emit the C ABI table + stable symbol names with hashes (horizon_hook_<domain>_<name>__v<ver>__<hash>) + per-symbol contract encoding. Same --check discipline as today.
  4. Host-side slot export: replace/augment each dispatch line with an exported slot (one predictable branch when empty). Stamping extended so a fragment carries its mod_api contract and its ABI hash.
  5. Runtime loader (new module in game + dedicated server): dlopen/libloading, dlsym by hashed name, domain-version negotiation, retour-style detour or direct fn-pointer table, load order from declared dependencies, fail-fast errors (built for worldgen 1, client offers 2), per-mod state + re-entrancy rules. This is the only genuinely new unsafe code.
  6. horizon-sdk crate: safe header-only wrapper over abi (#[inline(always)] newtypes, iterators, RAII guards), #[mixin]/#[worldgen_overlay]-style proc-macros, fake ApiTable for cargo test without the game.
  7. Tier 1 slots for non-event kinds (new design per #4953 remainder): manifest menu entry, JSON registries via arena, seed_remap/snow_offset/structure_box/level_height, ChunkView/DecorCtx + host-owned sampler cache, registration ABI (blocks/items/entities with network IDs), capability vtables with batch ticking. Hardest part; each slot is one /claim-sized PR with in-game proof, same as the hook process.
  8. Launcher + registry: publish up to 6 binaries per release (os × arch matrix in CI), index.json gains (domain_versions, os, arch), launcher downloads only the client's artifact; revoked.toml and signing already exist.
  9. Migration proof: port zoom first (HEAD-only, ~6 hooks), then recipes (glue.rs → From over repr(C)), then smp shims; trait-mod machine-sample rebuilt as cdylib with the same proof table as #6216. Tier 2 source mixins stay as the incubator.

Fit with #5638 / #6216 (typed mod API, now merged) and #4953 (what a large tech mod needs)

#5638 is closed and #6216 is merged into main: the generated Hooks trait (listen/cancel/replace/collect), Host and level hosts, entry::main_with, attachments, inter-mod dependencies and renderer hooks are now the baseline, not a preview branch. This cdylib proposal is step 2 on top of that merged work: take the same generated API as horizon-sdk, stabilize it as horizon-abi, and ship it as prebuilt binaries instead of relinking sources on player machines. Fast trait-mod rebuilds fix the dev loop; the stable ABI additionally fixes weak PCs, closed-source mods, and survival across client updates.

It also tracks #4953, which now measures hook parity against NeoForge 26.3 events (plus a separate Hooks without a NeoForge counterpart section) with a much larger denominator than before, so its progress bar was reset by scope growth rather than regressions. Everything already at parity maps 1:1 onto hook slots. What still needs design beyond hooks — the remainder of #4953 — is a stable registration ABI (code-side blocks/items/entities with network IDs, attachments, data maps, custom ingredients) and stable capability vtables with batch ticking for fluids/energy/pipes/instanced moving parts, where a per-block-entity boundary would be too fine-grained — 6 subsystems instead of 200 per-site hooks.

This keeps the current hook-point design (which is good — the hook-point catalog keeps growing, and community mods beyond the official set may already need different hooks) and only changes how mods attach to it: dylib + hash-checked slot instead of source merge + full rebuild, with Tier 2 source mixins kept for experiments that have no slot yet.

Recommended execution appendix (author's note: I most likely cannot carry this out myself, even with AI help — this is written for whoever picks it up)

Base pin. Start from a fresh main (this proposal was measured against fd57b86, 2026-11-02 — rebase first), then run cargo run -p xtask -- mod-api --check and python3 tools/pr_ready.py --quick. If either is red on stock main, stop: the tree moved under you.

First vertical slice (do this before anything else): zoom end-to-end. One cdylib exporting 6 hashed symbols (native_key, native_wheel, native_zoom, native_mods, native_settings, native_settings_click), one loader that dlsyms them at startup, one launcher path that installs the .so/.dll instead of rebuilding the game. Done means: (a) zoom works in-game from the binary with no game rebuild; (b) a client update that touches none of the 6 hooks leaves the same mod.so loading; (c) a client update that changes one hook's signature fails fast with the hook's name, not a crash; (d) cargo test in the mod crate passes against the fake ApiTable. Everything else in Scope items 1–8 is a repeat of this slice at larger scale.

Defaults for the open forks (pick these unless measurement says otherwise). Fn-pointer table, not retour-style detours (simpler auditing, same single-indirect-call cost). Signature hash = first 6 hex of blake3 over the canonical signature (name + repr(C) param/return types + ownership note). Arena allocation: host allocates, mod only reads, never stores pointers past the call. #[mixin] proc-macro output must be readable-expanded (cargo expand-clean) so reviewers never debug macro magic.

Acceptance per item. Each Scope item lands as its own small PR with: xtask mod-api --check green, cargo test + pr_ready.py green on the touched crates, and a proof table in the PR body in the style of #6216 (what was run: server thread, dedicated server where applicable, before/after timings or load/no-load behavior). No proof, no merge.

Guards. Hook-body semantics are never changed by this work — slots only expose them. Tier 2 source mixins keep building exactly as today. The four contracts (listen/cancel/replace/collect) stay 1:1 with #6216; any deviation is a separate proposal. If a needed slot does not exist, file it via native-hook-fragments/ and build the Tier 2 mixin first — the working patch is the justification for the Tier 1 slot.

I'll be honest: I can't afford a $200 subscription and therefore can't help this project in any substantial way. That doesn't change the fact that I genuinely care about its future, which is exactly why I'm writing this instead of staying silent. I would be glad to receive a response from a real human.
Thanks.

Originally created by @BlueGradientHorizon on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5109 First of all - this is genuinely impressive work. A clean-room 26.3 client in Rust with this level of parity discipline (harnesses, oracles, the port ledger) is something I haven't seen anywhere else. Huge respect to everyone involved. That said, I think the current modding direction - WASM removed (#3350), code mods only as native mixin bundles compiled into the game is a dead end, and I'd like to make the case for eventually building a runtime mod-loading mechanism back. Minecraft arguably became what it is because modding was easy: download a ready .jar, drop it in a folder, launch. A couple of minutes, zero knowledge required. The current approach reverses all of that: 1. Weak hardware is locked out. A native build means the launcher downloads its own Rust toolchain (~0.5-1.7 GB), the pinned source, hundreds of MB of crates, and then compiles the whole game in release (~7-12 min on a desktop, 1.5-2 GB of native/target/). On a weak laptop, an HDD, or SteamOS (where native builds don't work at all per native-mods.md), this is not a real option. 2. Closed-source mods (ARR and similar) have nowhere to go. A .hnmod is its source (mods.md: "A native mod's .hnmod is its source"), and registry listing requires a public GitHub repo with review. An author who doesn't want to publish source can only hand out zip files with readable Rust. There is no binary distribution path by design. 3. Every add/update means a recompile. Adding, updating, or removing one code mod rebuilds horizon-client (~3 min in the best case). A unique modpack becomes a 10-minute build session instead of a 2-minute drag-and-drop. I understand the rationale, the WIT sandbox couldn't express what hook APIs now do (block entities, server menus, redstone, scheduled ticks, mobs, mod net), and building reviewed source locally sidesteps the "run someone else's binary" trust problem. But the cost is that code modding changes its audience from "any player" to "a player with a desktop and 10 free minutes". My hope is that someday a runtime mechanism returns, even a narrow one (stable hook ABI, signed prebuilt game variants per mod-set from CI, or an opt-in sandbox for binary mods) so the content mods stay one-click for everyone, and code mods can be one-click too. I did a small brainstorming session with an AI agent, and here is what we came up with. ### Proposal: stable-ABI native plugins (`cdylib`) instead of source patches (`.hnmod`) Keep everything Rust-only and native-speed, but stop recompiling the game per mod. **How it would work** 1. `horizon-abi` — a small versioned stable-ABI crate, versioned **per domain** (e.g. `worldgen:1, blocks:3`), not one global `u32`. `#[repr(C)]`, `extern "C"`, opaque handles, no generics/`Vec<String>`/`dyn` on the boundary. This is the *only* contract a mod links against. Never `horizon-client` internals directly. 2. `horizon-sdk` — a safe, idiomatic, header-only wrapper over `abi`. Compiled *into* the mod, so `#[inline(always)]` newtypes (`EntityRef`, `Game`, `ServerCtx`) optimize to the same asm as direct access. This is where canonical Rust lives: iterators, `Result`, lifetimes, `#[mixin]` proc-macros. 3. Mods ship as compiled `cdylib` (`.so/.dll/.dylib`), one artifact per `os x arch` (`win/linux/mac x x86_64/aarch64`). The registry keeps all binaries per version, the launcher downloads only the client's own. No source rebuild on player PCs — this fixes weak PCs and closed-source mods at once. 4. Hooks, not patches — **but only declared slots**. Today's `[[injection]] target = Game::native_key` becomes a stable exported hook slot with a signature hash, e.g. `horizon_hook_world_tick__v7__a3f9c1`. The loader resolves it with `dlsym` at runtime and installs a `retour`-style detour only if the hash matches. No mod: one predictable branch (`~0` cost). With mod: one indirect call. Cancellable / replace / collect hooks reuse the `listen / cancel / replace / collect` semantics already merged into main via #5638/#6216 (an explicit encoding over FFI plus multi-mod order, not a raw detour). `MODIFY_VARIABLE` / `RETURN` patches are not detoured — they become explicit upstream slots (see below). 5. Hot loop rule: boundary is `O(1)` per frame/chunk. The host hands the mod contiguous slices or views (`on_chunk_tick(pos: *const f32, vel: *mut f32, n: usize)`, `ChunkView { get, set, biome }` for worldgen), the tight loop lives inside the mod where LLVM/LTO sees it. Private fields via runtime-queried offsets cached in a `static` — one `add` in the hot loop. Old `mod.so` built against `sdk` keeps working on a new client as long as the domain symbols it uses are unchanged. **What changes for a mod — `zoom` example** Today (`horizon-mixin.toml` + source patch): ```toml [[injection]] id = "key" target = "horizon_client::game::native_hooks::Game<'_>::native_key" helper = "key.rs" bindings = [{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" }] ``` ```rust // key.rs, compiled TOGETHER with the game fn zoom_key(game: &mut crate::game::Game<'_>, key: &str, pressed: bool) { use crate::game::official_zoom as zoom; if !game.native_on(zoom::ID) { return; } let bound = game.native_mod_key(zoom::ID, zoom::KEY, zoom::DEFAULT_KEY); ... } ``` Proposed: ```rust // src/hooks.rs, compiled INSIDE mod.so against horizon-sdk #[horizon_sdk::mixin(Game::native_key)] fn zoom_key(game: &mut Game, key: &str, pressed: bool) { if !game.is_enabled(ID) { return; } if key != game.mod_key(ID, KEY, DEFAULT_KEY) { return; } zoom::key(game.is_playing(), pressed, |n| game.setting(ID, n)); } ``` `runtime.rs` (settings, `STATE`, all `#[test]`) moves over 1:1 — it never touched `Game` anyway. `horizon-mixin.toml` disappears, `compatibility.json: horizon_revision` becomes `api_version` per domain. Same pattern covers `coords-hud/fps-overlay/keystrokes/minimap` (a handful of `HEAD` hooks each); `recipes` only rewrites its `glue.rs` into `From` impls over `repr(C)` slices; `smp` keeps its pure-logic files untouched and rewrites only `glue.rs` plus one-function hook shims. The `zoom` pattern covers `HEAD` hooks with primitives. A complex mod needs more: [`tectonic-horizon`](https://github.com/eltanschauung/tectonic-horizon/tree/75c5a2c7fe370166c2fb2d8b948fb21c88f557ff) at `75c5a2c` (2026-11-01; taken as an example; `mixins/tectonic_horizon/horizon-mixin.toml`) uses 8 injections + 4 modules — plain `HEAD` (`mod-menu-entry`, `worldgen-registries`, `river-decoration`, `activate-world`), cancellable `HEAD` (`parameter-seeds -> ControlFlow<[u64; 2]>`, `increased-build-height -> ControlFlow<Option<LevelHeight>>`), `MODIFY_VARIABLE` (`snow-height`: local `start` at `STORE`), `RETURN` (`monument-depth`: `BoundingBox`, magic box `58x23x58 at Y=39`), and `[[module]]` in-crate code (`terrain` tables, `runtime` `lower`/`populate`, `selection` as `impl ... for super::WorldgenOverrides`, `decoration` with `use crate::registry::BlockStateId, crate::worldgen::..., super::{GeneratorData, ProtoChunk}` plus `horizon_core::density/noise/random`). For that class the slot is a domain API, not a detour — details per kind below. **What changes for a mod — `tectonic` example (per injection kind)** Source: [`tectonic-horizon @ 75c5a2c`](https://github.com/eltanschauung/tectonic-horizon/tree/75c5a2c7fe370166c2fb2d8b948fb21c88f557ff) (2026-11-01; taken as an example — every Today snippet below verified against this commit). Each kind below shows Today (`.hnmod` source patch) → Proposed (inside `mod.so` vs `horizon-sdk`). ###### 1. `HEAD` plain — `mod-menu-entry` (`Game::native_mods`, `&mut Vec<NativeMod>`). Today: ```toml [[injection]] id = "mod-menu-entry" kind = "HEAD" target = "horizon_client::game::native_hooks::Game<'_>::native_mods" helper = "menu.rs" ``` ```rust // menu.rs, compiled TOGETHER with the game fn register(mods: &mut Vec<NativeMod>) { if mods.iter().any(|e| e.id == "tectonic_horizon") { return; } mods.push(NativeMod { id: "tectonic_horizon".into(), title: "Tectonic-Horizon 0.3.0".into(), .. }); } ``` Proposed: no code hook — declarative manifest. The host reads it, no `Vec<NativeMod>` over FFI: ```toml # mod.toml (or Cargo [package.metadata.horizon]) [menu-entry] id = "tectonic_horizon" title = "Tectonic-Horizon 0.3.0" description = "..." ``` ###### 2. `HEAD` with rich types — `worldgen-registries` (`WorldgenOverrides::apply`, `&WorldgenOverrides + &str + &mut BTreeMap`). Today: ```rust // registries.rs, inside host crate fn registries(overrides: &WorldgenOverrides, bundle: &str, base: &mut BTreeMap<String, String>) { let enabled = overrides.mod_enabled("tectonic_horizon"); tectonic_horizon::set_active(enabled); if enabled { tectonic_horizon::populate(bundle, base, tectonic_horizon::config()); } } ``` Proposed: `BTreeMap` never crosses the boundary — JSON strings via arena: ```rust // src/worldgen.rs, compiled INSIDE mod.so #[horizon_sdk::worldgen_overlay] // versioned per domain: worldgen:1 fn overlay(bundle: Str, base: JsonMap, out: &mut JsonVec) -> i32 { if !sdk::is_enabled(ID) { return 0; } // pure logic from runtime.rs: lower()/populate() over strings tectonic::populate(bundle.as_str(), base.iter_str(), out, &config()) } ``` ###### 3. `HEAD` cancellable — `parameter-seeds` (`seed_from_hash -> ControlFlow<[u64; 2]>`). Today: ```rust fn seeds(name: &str) -> std::ops::ControlFlow<[u64; 2]> { if let Some(path) = name.strip_prefix("tectonic:parameter/") { return std::ops::ControlFlow::Break(seed_from_hash(&format!("minecraft:{path}"))); } std::ops::ControlFlow::Continue(()) } ``` Proposed: `replace` contract from #6216 (first `Some` wins), primitives only: ```rust #[horizon_sdk::seed_remap] // cancel/replace semantics fn seed_remap(name: Str, out: *mut [u64; 2]) -> bool { let Some(path) = name.as_str().strip_prefix("tectonic:parameter/") else { return false; }; unsafe { *out = sdk::seed_from_hash(&format!("minecraft:{path}")); } true // claimed — host skips its own hash } ``` ###### 4. `MODIFY_VARIABLE` — `snow-height` (`height_adjusted`, local `start` at `STORE`, `$value: i32 -> i32`). Today: ```toml [[injection]] id = "snow-height" kind = "MODIFY_VARIABLE" target = "horizon_world::worldgen::biome_temperature::BiomeTemperatureSettings::height_adjusted" variable = { name = "start", ordinal = 0, at = "STORE" } ``` ```rust fn snow(value: i32) -> i32 { let config = crate::worldgen::overrides::tectonic_horizon::config(); value.saturating_add(if crate::worldgen::overrides::tectonic_horizon::active() && config.general.mod_enabled { config.general.snow_start_offset } else { 0 }) } ``` Proposed: not a detour — an explicit slot. The fragile local disappears: ```rust #[horizon_sdk::snow_offset] // worldgen:1, host calls instead of STORE-patching fn snow_offset() -> i32 { if sdk::is_active() && config().general.mod_enabled { config().general.snow_start_offset } else { 0 } } // host: start = base_start.saturating_add(mod_snow_offset()); ``` ###### 5. `RETURN` — `monument-depth` (`make_bounding_box -> BoundingBox`). Today: ```rust fn monuments(value: BoundingBox, y: i32, width: i32, height: i32, depth: i32) -> BoundingBox { if active() && config().general.mod_enabled && (y, width, height, depth) == (39, 58, 23, 58) { return value.moved([0, config().oceans.monument_offset, 0]); } value } ``` Proposed: explicit slot with `repr(C)` box, no internal return patching: ```rust #[horizon_sdk::structure_box] // worldgen:1 fn structure_box(kind: StructureKind, mut b: BoxC) -> BoxC { if kind == StructureKind::Monument && (b.y, b.w, b.h, b.d) == (39, 58, 23, 58) && sdk::is_active() && config().general.mod_enabled { b.y += config().oceans.monument_offset; } b } ``` ###### 6. `HEAD` cancellable with struct return — `increased-build-height` (`level_height -> ControlFlow<Option<LevelHeight>>`). Today: reads host internals (`overrides.entries(DIMENSIONS)`, `entries(DIMENSION_TYPES)`) to decide. ```rust fn height(overrides: &WorldgenOverrides, level: &str) -> ControlFlow<Option<LevelHeight>> { let config = tectonic_horizon::config(); if overrides.mod_enabled("tectonic_horizon") && config.general.mod_enabled && config.global_terrain.increased_height && level == "minecraft:overworld" && overrides.entries(DIMENSIONS).all(|(id, _)| id != level) && overrides.entries(DIMENSION_TYPES).all(|(id, _)| id != level) { return Break(Some(LevelHeight { min_y: -64, height: 704, logical_height: 704, has_skylight: true })); } Continue(()) } ``` Proposed: host answers the queries, mod only decides on primitives: ```rust #[horizon_sdk::level_height] // worldgen:1, replace contract fn level_height(level: Str, out: *mut LevelHeightC) -> bool { if level.as_str() != "minecraft:overworld" { return false; } if !(sdk::is_enabled() && config().global_terrain.increased_height) { return false; } if sdk::worldgen_has_override(level.as_str()) { return false; } // host-side entries() check unsafe { *out = LevelHeightC { min_y: -64, height: 704, logical: 704, skylight: true }; } true } ``` ###### 7. `HEAD` chunk batch — `river-decoration` (`Decoration::decorate`, `&Arc<GeneratorData> + i64 + &WorkerState + &mut [ProtoChunk; 9]`). Today (inside host crate, full internal access): ```rust fn river_features(data: &Arc<GeneratorData>, seed: i64, worker: &WorkerState, region: &mut [ProtoChunk; 9]) { if worker.structures_only { return; } if let Err(error) = crate::worldgen::generator::tectonic_decoration::decorate(data, seed, region) { panic!("[Tectonic-Horizon] river decoration failed: {error}"); } } // + decoration.rs builds DensityCompiler/DensityRegistry/Xoroshiro samplers, // calls chunk.block_name/set_block_worldgen/biome_at — all crate::/super:: items ``` Proposed: host owns `GeneratorData`/samplers/`ProtoChunk`; mod gets a view + field callback. No `Arc`, no `DensityCompiler` in the mod: ```rust #[horizon_sdk::decorate_chunk] // worldgen:1, O(1) per chunk fn decorate(view: &mut ChunkView, seed: u64, ctx: &DecorCtx) -> i32 { if !sdk::is_active() || view.is_decorated() { return 0; } // ctx.river_at(x,y,z) is the host's sampler; view.get/set/biome are host calls rivers::decorate(view, seed, ctx.river_at, ctx.lantern_field) } ``` The `OnceLock<Mutex<Vec<Arc<Samplers>>>>` cache in `decoration.rs` moves host-side. ###### 8. `HEAD` lifecycle — `activate-world` (`shared_data_with`, `&WorldgenOverrides` + `ModList::load`, `game_home`, `forget_shared_data`). Today: ```rust fn activate(overrides: &WorldgenOverrides) { let previous = tectonic_horizon::active(); let menu = crate::mod_list::ModList::load(&crate::logging::game_home()); tectonic_horizon::set_active(!menu.disabled.contains("tectonic_horizon")); let enabled = overrides.mod_enabled("tectonic_horizon"); tectonic_horizon::set_active(enabled); // Stock upstream's cache key has no mod flags. Invalidate it when its live switch changes. if previous != enabled { forget_shared_data(); } } ``` Proposed: lifecycle events, host owns cache + mod list: ```rust #[horizon_sdk::on_world_open] // lifecycle domain fn on_world_open(env: &WorldEnv) { sdk::set_active(env.mod_enabled(ID)); // host already merged menu + per-world flag // forget_shared_data() equivalent is host's invalidate_cache_if(changed) } ``` ###### 9. `[[module]]` — `terrain` / `runtime` / `selection` / `decoration`. Today: compiled *into* `crates/horizon-world` (`file = "crates/horizon-world/src/worldgen/overrides.rs"`), so `use crate::...` / `super::...` works. Proposed: * `terrain.rs` (`BASE/MOD/TALL` const tables) → `data/` JSON files in the `.hmod`, no Rust. * `runtime.rs` (`Config`, `lower`, `populate`, tests) → pure `mod.so` code over `Str`/`JsonMap` (unit-tested vs fake `ApiTable`); `tectonic:config_*` codecs lowered host-side. * `selection.rs` (`impl TectonicWorldSelection for super::WorldgenOverrides`) → manifest flag `per_world_selection = true`, host implements. * `decoration.rs` → see (7); the `use crate::...` / `super::` imports disappear because the APIs they used (`DensityRegistry::from_json`, `decode_noise`, `BlockStateId`, `set_block_worldgen`) become host calls behind `ChunkView` / `DecorCtx`. **Pros vs current `.hnmod`** * No 7–12 min rebuild, no toolchain on player machines. Weak PCs just download a small binary. * Closed-source mods possible without leaking code; review happens on behavior + `manifest permissions + sigstore/minisign`, reproducible builds stay verifiable. * Mods survive client updates when the API domains they use didn't change — the current `horizon_revision` pin breaks on any commit. * Same Rust, same speed: hot-loop code is still Rust in the mod crate, no Lua/WASM boundary per entity. * Normal tooling returns: `cargo add horizon-sdk`, `rust-analyzer`, `docs.rs`, `cargo test` against a fake `ApiTable` instead of rebuilding the whole game for checks. **Remaining cons (honest)** * Arbitrary native code on clients — needs a real trust model: per-mod permissions, signing, `revoked.toml` already exists; fs/net access is reviewed via manifest, not technically enforced (why not a real sandbox — see the Sandbox section below). * `unsafe` boundary to maintain: `#[repr(C)]` layout asserts, `catch_unwind` on every `extern "C"` entry, `Send/Sync` audits, no panics/`async`/allocation across FFI. * For consistent and equal support of all OS/arch combinations supported by the project, a modder must upload binaries for every os/arch combo without exception. That is up to 6 binaries per release to build/host/CI — needs infra builds (GitHub Actions matrix does this well) so authors without a given machine still ship for it. * Hook-slot discipline per domain forever: hook points only ever added, never renamed; per-symbol signature hashes; breaking changes bump that domain's major and old mods fail fast ("built for worldgen 1, client offers 2") instead of UB. This matters more, not less, because the catalog moves fast (the API number went from double to triple digits over a single weekend; `native-hooks.json` at the repo root plus `tools/native-hook-fragments/`), which is exactly why discipline must be per domain rather than one global number. * If there is no slot where a modder needs one, they must request it upstream and wait for the next API release. `MODIFY_VARIABLE` / `RETURN` are the most fragile patches (local ordinals, `STORE` sites, struct layout), so turning them into explicit slots (`native_snow_offset`, `native_structure_box`) is the right price — requested via the existing `tools/native-hook-fragments/` + `stamp_native_hooks.py` process. Today's source mixins stay as the incubator: a working Tier 2 patch justifies the Tier 1 slot proposal. * Rich types (`BTreeMap<String,String>`, `Arc<GeneratorData>`, `ProtoChunk`) and `[[module]]` in-crate access (`crate::` / `super::`, `DensityCompiler`, `XoroshiroRandom`) cannot cross a `.so` boundary — they need the domain views above, so the ABI is ~12 narrow domain interfaces (lifecycle/server, worldgen, blocks/behaviour, block-entity + machines, items, entities/mobs, guards/players, menus/screens, loot/recipes, render/HUD, net, data/content), each versioned separately. **Sandbox: options considered, and why this model has none** For the record, every sandbox shape was looked at and rejected for this architecture — not from dislike, but because none survives contact with «arbitrary compiled machine code in the game's own process»: * **WASM-component sandbox (the only production-proven in-process one).** Firefox's `RLBox` compiles untrusted libs to WASM and back (`wasm2c`): code physically cannot jump outside its region or touch foreign memory, overhead is single-digit percent. But that is a compiler-cooperation deal — the mod must be built to a constrained target. Applied here it *is* the old WASM path with a new name, and it reintroduces exactly the expressiveness ceiling the hook APIs outgrew (plus a mandatory batch/copy boundary on every hot loop). A different tier, not this proposal. * **Out-of-process mod host (`seccomp` + `Landlock` + IPC/shared memory, cf. Google's Sandboxed API/Sandbox2).** Real isolation with a tight per-library syscall policy — at microseconds per boundary crossing instead of nanoseconds. Fine for logic, fatal for the render/worldgen hot loops this proposal keeps at one indirect call. * **Hardware domains (Intel MPK/PKU à la `ERIM`, `<1%` at 100k switches/s).** The policy register is writable from userspace, so the sandbox must forbid itself from touching it — binary inspection plus syscall filtering (`Hodor`, `Donky`, `Jenny`), 16 domains max, per-core quirks. The one Rust-specific attempt (`PKRU-Safe`, patched rustc + LLVM passes) is a research prototype tied to a custom toolchain and CPUs with the `pku` flag — not shippable to random player hardware. `CHERI`/`Morello`, ARM `MTE`/`PAC`, `TME-Box` are further out still. * **The RLBox «last mile» lesson applies to all of the above:** the isolator is the easy part; the hard part is retrofitting the host to treat every value crossing the boundary as hostile (taint everything, validate everything). That would double the `Host` API work while the hook catalog is still growing by dozens of points per weekend. So this proposal is honest about what it is: `cdylib` plugins are full-trust native code, contained by signing, review, per-mod permission manifests and `revoked.toml` — a trust model, not a sandbox. If the project ever wants untrusted-code execution, that is a separate, complementary tier (sandboxed logic mods through batch APIs), not a modification of this one. **Maintenance** API evolves additively per domain, checked in CI by the catalog diff (`native-hooks.json` at the repo root plus `tools/native-hook-fragments/`, stamped by `tools/stamp_native_hooks.py`) + `semver-checks` on `horizon-abi`. Launcher resolves `(domain_versions, os, arch)` from `index.json`. `sdk` is semver'd with the domain majors; old mods keep their bundled `sdk` and keep loading. Breaking changes bump that domain's major and old mods fail fast with "built for worldgen 1, client offers 2" instead of UB. **Scope of work (from HEAD `fd57b86`, 2026-11-02)** Ground already laid by #5446/#5909/#6216, all in main: `crates/horizon-client/src/mod_api.rs` (~23 KB hand-written) + `mod_api/generated.rs` (~444 KB) + `mod_api/generated_host.rs` (~54 KB), generated by `xtask/src/mod_api.rs` (~70 KB) from `native-hooks.json` (~63 KB catalog); `game/native_hooks.rs` (~422 KB) with one dispatch line per hook body; `entry.rs` with `main()` + `main_with(mods)`; launcher side `launcher/src/native_mods.rs` (~155 KB) + `launcher/src/native_mods/{api,crates,dependencies,inject,inject_cache}.rs`. What follows reuses all of it — nothing below redesigns hooks, only how mods attach: 0. **Reuse as-is:** the `Hooks`/`Host`/level-host traits, the four contracts, attachments and inter-mod dependency order from #6216 become the `sdk` surface; `native-hook-fragments/` + stamping stays the intake for new slots. 1. **New crate `horizon-abi` (small, the only versioned contract):** `repr(C)` types per domain (lifecycle, worldgen, blocks/behavior, block-entity+machines, items, entities/mobs, guards/players, menus/screens, loot/recipes, render/HUD, net, data/content), `API_VERSION` per domain, canonical-signature hashing. No game types leak in. 2. **Generator extension (`xtask mod-api`):** from the same `native-hooks.json`, additionally emit the C ABI table + stable symbol names with hashes (`horizon_hook_<domain>_<name>__v<ver>__<hash>`) + per-symbol contract encoding. Same `--check` discipline as today. 3. **Host-side slot export:** replace/augment each dispatch line with an exported slot (one predictable branch when empty). Stamping extended so a fragment carries its `mod_api` contract *and* its ABI hash. 4. **Runtime loader (new module in game + dedicated server):** `dlopen`/`libloading`, `dlsym` by hashed name, domain-version negotiation, `retour`-style detour or direct fn-pointer table, load order from declared dependencies, fail-fast errors (`built for worldgen 1, client offers 2`), per-mod state + re-entrancy rules. This is the only genuinely new unsafe code. 5. **`horizon-sdk` crate:** safe header-only wrapper over `abi` (`#[inline(always)]` newtypes, iterators, RAII guards), `#[mixin]`/`#[worldgen_overlay]`-style proc-macros, fake `ApiTable` for `cargo test` without the game. 6. **Tier 1 slots for non-event kinds (new design per #4953 remainder):** manifest menu entry, JSON registries via arena, `seed_remap`/`snow_offset`/`structure_box`/`level_height`, `ChunkView`/`DecorCtx` + host-owned sampler cache, registration ABI (blocks/items/entities with network IDs), capability vtables with batch ticking. Hardest part; each slot is one `/claim`-sized PR with in-game proof, same as the hook process. 7. **Launcher + registry:** publish up to 6 binaries per release (os × arch matrix in CI), `index.json` gains `(domain_versions, os, arch)`, launcher downloads only the client's artifact; `revoked.toml` and signing already exist. 8. **Migration proof:** port `zoom` first (HEAD-only, ~6 hooks), then `recipes` (`glue.rs` → `From` over `repr(C)`), then `smp` shims; trait-mod `machine-sample` rebuilt as `cdylib` with the same proof table as #6216. Tier 2 source mixins stay as the incubator. **Fit with #5638 / #6216 (typed mod API, now merged) and #4953 (what a large tech mod needs)** #5638 is closed and #6216 is merged into main: the generated `Hooks` trait (`listen/cancel/replace/collect`), `Host` and level hosts, `entry::main_with`, attachments, inter-mod dependencies and renderer hooks are now the baseline, not a preview branch. This `cdylib` proposal is step 2 on top of that merged work: take the same generated API as `horizon-sdk`, stabilize it as `horizon-abi`, and ship it as prebuilt binaries instead of relinking sources on player machines. Fast trait-mod rebuilds fix the dev loop; the stable ABI additionally fixes weak PCs, closed-source mods, and survival across client updates. It also tracks #4953, which now measures hook parity against NeoForge 26.3 events (plus a separate `Hooks without a NeoForge counterpart` section) with a much larger denominator than before, so its progress bar was reset by scope growth rather than regressions. Everything already at parity maps 1:1 onto hook slots. What still needs design beyond hooks — the remainder of #4953 — is a stable registration ABI (code-side blocks/items/entities with network IDs, attachments, data maps, custom ingredients) and stable capability vtables with batch ticking for fluids/energy/pipes/instanced moving parts, where a per-block-entity boundary would be too fine-grained — 6 subsystems instead of 200 per-site hooks. This keeps the current hook-point design (which is good — the hook-point catalog keeps growing, and community mods beyond the official set may already need different hooks) and only changes *how* mods attach to it: dylib + hash-checked slot instead of source merge + full rebuild, with Tier 2 source mixins kept for experiments that have no slot yet. **Recommended execution appendix (author's note: I most likely cannot carry this out myself, even with AI help — this is written for whoever picks it up)** *Base pin.* Start from a fresh `main` (this proposal was measured against `fd57b86`, 2026-11-02 — rebase first), then run `cargo run -p xtask -- mod-api --check` and `python3 tools/pr_ready.py --quick`. If either is red on stock `main`, stop: the tree moved under you. *First vertical slice (do this before anything else): `zoom` end-to-end.* One `cdylib` exporting 6 hashed symbols (`native_key`, `native_wheel`, `native_zoom`, `native_mods`, `native_settings`, `native_settings_click`), one loader that `dlsym`s them at startup, one launcher path that installs the `.so`/`.dll` instead of rebuilding the game. Done means: (a) zoom works in-game from the binary with no game rebuild; (b) a client update that touches none of the 6 hooks leaves the same `mod.so` loading; (c) a client update that changes one hook's signature fails fast with the hook's name, not a crash; (d) `cargo test` in the mod crate passes against the fake `ApiTable`. Everything else in Scope items 1–8 is a repeat of this slice at larger scale. *Defaults for the open forks (pick these unless measurement says otherwise).* Fn-pointer table, not `retour`-style detours (simpler auditing, same single-indirect-call cost). Signature hash = first 6 hex of `blake3` over the canonical signature (name + `repr(C)` param/return types + ownership note). Arena allocation: host allocates, mod only reads, never stores pointers past the call. `#[mixin]` proc-macro output must be readable-expanded (`cargo expand`-clean) so reviewers never debug macro magic. *Acceptance per item.* Each Scope item lands as its own small PR with: `xtask mod-api --check` green, `cargo test` + `pr_ready.py` green on the touched crates, and a proof table in the PR body in the style of #6216 (what was run: server thread, dedicated server where applicable, before/after timings or load/no-load behavior). No proof, no merge. *Guards.* Hook-body semantics are never changed by this work — slots only expose them. Tier 2 source mixins keep building exactly as today. The four contracts (`listen/cancel/replace/collect`) stay 1:1 with #6216; any deviation is a separate proposal. If a needed slot does not exist, file it via `native-hook-fragments/` and build the Tier 2 mixin first — the working patch is the justification for the Tier 1 slot. I'll be honest: I can't afford a $200 subscription and therefore can't help this project in any substantial way. That doesn't change the fact that I genuinely care about its future, which is exactly why I'm writing this instead of staying silent. I would be glad to receive a response from a real human. Thanks.
Author
Owner

@BlueGradientHorizon commented on GitHub (Oct 31, 2026):

I asked my agent to dig through all open and closed issues in this repository (including the whole removal stack #3350 - #3351 - #3353 - #3371) looking for the reasoning behind closing the WASM path and it couldn't find any.

The only documented logic is "code mods are native now, so the duplicate runtime was deleted", plus the checklist that official mods had native versions. No benchmarks showing WASM was slow, no sandbox incident, no human discussion on the PRs at all.

I won't pretend to be a serious developer, but I'd still like to understand: what were WASM's practical problems? The sandbox? Performance? The cost of maintaining two APIs? Something else entirely? If the decision was just "native caught up, so we cut the duplicate" that's fine, but it would be good to hear it stated plainly by whoever owns the modding direction.

<!-- gh-comment-id:6543142497 --> @BlueGradientHorizon commented on GitHub (Oct 31, 2026): I asked my agent to dig through all open and closed issues in this repository (including the whole removal stack #3350 - #3351 - #3353 - #3371) looking for the reasoning behind closing the WASM path and it couldn't find any. The only documented logic is "code mods are native now, so the duplicate runtime was deleted", plus the checklist that official mods had native versions. No benchmarks showing WASM was slow, no sandbox incident, no human discussion on the PRs at all. I won't pretend to be a serious developer, but I'd still like to understand: what were WASM's practical problems? The sandbox? Performance? The cost of maintaining two APIs? Something else entirely? If the decision was just "native caught up, so we cut the duplicate" that's fine, but it would be good to hear it stated plainly by whoever owns the modding direction.
Author
Owner

@bunchy7s commented on GitHub (Nov 1, 2026):

native-mods are NOT the way to go

<!-- gh-comment-id:6555306007 --> @bunchy7s commented on GitHub (Nov 1, 2026): native-mods are NOT the way to go
Author
Owner

@johalun commented on GitHub (Nov 1, 2026):

I agree. Don't do native mods. I'd like to see

  • Lua modding API (WASM would also work)
  • mods are sandboxed
  • tooling and runbooks for agents to convert existing Java mods to Lua, like big tech, magic and content mods
<!-- gh-comment-id:6560859910 --> @johalun commented on GitHub (Nov 1, 2026): I agree. Don't do native mods. I'd like to see - Lua modding API (WASM would also work) - mods are sandboxed - tooling and runbooks for agents to convert existing Java mods to Lua, like big tech, magic and content mods
Author
Owner

@BlueGradientHorizon commented on GitHub (Nov 1, 2026):

I did a small brainstorming session with an AI agent, and here is what we came up with.

Proposal: stable-ABI native plugins (cdylib) instead of source patches (.hnmod)

Keep everything Rust-only and native-speed, but stop recompiling the game per mod.

How it would work

  1. horizon-abi — a tiny versioned stable-ABI crate. #[repr(C)], extern "C", opaque handles, no generics/Vec<String>/dyn on the boundary, API_VERSION: u32. This is the only contract a mod links against. Never horizon-client internals directly.
  2. horizon-sdk — a safe, idiomatic, header-only wrapper over abi. Compiled into the mod, so #[inline(always)] newtypes (EntityRef, Game, ServerCtx) optimize to the same asm as direct access. This is where canonical Rust lives: iterators, Result, lifetimes, #[mixin] proc-macros.
  3. Mods ship as compiled cdylib (.so/.dll/.dylib), one artifact per os x arch (win/linux/mac x x86_64/aarch64). The registry keeps all binaries per version, the launcher downloads only the client's own. No source rebuild on player PCs — this fixes weak PCs and closed-source mods at once.
  4. Hooks, not patches. Today's [[injection]] target = Game::native_key becomes a stable exported hook slot with a signature hash, e.g. horizon_hook_world_tick__v7__a3f9c1. The loader resolves it with dlsym at runtime and installs a retour-style detour only if the hash matches. No mod: one predictable branch (~0 cost). With mod: one indirect call.
  5. Hot loop rule: boundary is O(1) per frame. The host hands the mod contiguous slices (on_chunk_tick(pos: *const f32, vel: *mut f32, n: usize)), the tight loop lives inside the mod where LLVM/LTO sees it. Private fields via runtime-queried offsets cached in a static — one add in the hot loop. Old mod.so built against sdk v7 keeps working on a new client as long as API_VERSION=7 symbols it uses are unchanged.

What changes for a mod — zoom example

Today (horizon-mixin.toml + source patch):

[[injection]]
id = "key"
target = "horizon_client::game::native_hooks::Game<'_>::native_key"
helper = "key.rs"
bindings = [{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" }]
// key.rs, compiled TOGETHER with the game
fn zoom_key(game: &mut crate::game::Game<'_>, key: &str, pressed: bool) {
    use crate::game::official_zoom as zoom;
    if !game.native_on(zoom::ID) { return; }
    let bound = game.native_mod_key(zoom::ID, zoom::KEY, zoom::DEFAULT_KEY);
    ...
}

Proposed:

// src/hooks.rs, compiled INSIDE mod.so against horizon-sdk v7
#[horizon_sdk::mixin(Game::native_key)]
fn zoom_key(game: &mut Game, key: &str, pressed: bool) {
    if !game.is_enabled(ID) { return; }
    if key != game.mod_key(ID, KEY, DEFAULT_KEY) { return; }
    zoom::key(game.is_playing(), pressed, |n| game.setting(ID, n));
}

runtime.rs (settings, STATE, all #[test]) moves over 1:1 — it never touched Game anyway. horizon-mixin.toml disappears, compatibility.json: horizon_revision becomes api_version = 7. Same pattern covers coords-hud/fps-overlay/keystrokes/minimap (a handful of HEAD hooks each); recipes only rewrites its glue.rs into From impls over repr(C) slices; smp keeps its pure-logic files untouched and rewrites only glue.rs plus one-function hook shims.

Pros vs current .hnmod

  • No 7–12 min rebuild, no toolchain on player machines. Weak PCs just download a small binary.
  • Closed-source mods possible without leaking code; review happens on behavior + manifest permissions + sigstore/minisign, reproducible builds stay verifiable.
  • Mods survive client updates when the API they use didn't change — the current horizon_revision pin breaks on any commit.
  • Same Rust, same speed: hot-loop code is still Rust in the mod crate, no Lua/WASM boundary per entity.
  • Normal tooling returns: cargo add horizon-sdk, rust-analyzer, docs.rs, cargo test against a fake ApiTable instead of rebuilding the whole game for checks.

Remaining cons (honest)

  • Arbitrary native code on clients — needs a real trust model: per-mod permissions, signing, revoked.toml already exists, plus sandboxing what can be sandboxed (fs/net reviewed via manifest, not technically enforced).
  • unsafe boundary to maintain: #[repr(C)] layout asserts, catch_unwind on every extern "C" entry, Send/Sync audits, no panics/async/allocation across FFI.
  • For consistent and equal support of all OS/arch combinations supported by the project, a modder must upload binaries for every os/arch combo without exception. That is up to 6 binaries per release to build/host/CI — needs infra builds (GitHub Actions matrix does this well) so authors without a given machine still ship for it.
  • Hook-slot discipline forever: hook points only ever added, never renamed; per-symbol signature hashes; breaking changes need a new API_VERSION and a compat shim.

Maintenance

API evolves additively, checked in CI by api.dump.json diff + semver-checks on horizon-abi. Launcher resolves (api_version, os, arch) from index.json. sdk is semver'd with the API major; old mods keep their bundled sdk and keep loading. Breaking changes bump the major and old mods fail fast with "built for API 7, client offers 8" instead of UB.

Fit with #5638 / #6216 (typed mod API) and #4953 (what a large tech mod needs)

This proposal only changes how mods attach to the hook points, not the points themselves. #5638 / #6216 is the natural step 1: the generated Hooks trait (listen/cancel/replace/collect), Host and level hosts, entry::main_with, attachments, inter-mod dependencies, renderer hooks — with measured trait-mod rebuilds in seconds instead of minutes. This cdylib proposal is step 2 on top of it: take that same generated API as horizon-sdk, stabilize it as horizon-abi, and ship it as prebuilt binaries instead of relinking sources on player machines. #5638 fixes the dev loop; the stable ABI additionally fixes weak PCs, closed-source mods, and survival across client updates. What still needs design beyond hooks — and matches the Not started remainder of #4953 — is a stable registration ABI (code-side blocks/items/entities with network IDs, attachments, data maps, custom ingredients) and stable capability vtables with batch ticking for fluids/energy/pipes/instanced moving parts, where a per-block-entity boundary would be too fine-grained.

This keeps the current hook-point design (which is good — the hook-point catalog keeps growing, and community mods beyond the official set may already need different hooks) and only changes how mods attach to it: dylib + hash-checked slot instead of source merge + full rebuild.

<!-- gh-comment-id:6561225699 --> @BlueGradientHorizon commented on GitHub (Nov 1, 2026): I did a small brainstorming session with an AI agent, and here is what we came up with. ### Proposal: stable-ABI native plugins (`cdylib`) instead of source patches (`.hnmod`) Keep everything Rust-only and native-speed, but stop recompiling the game per mod. **How it would work** 1. `horizon-abi` — a tiny versioned stable-ABI crate. `#[repr(C)]`, `extern "C"`, opaque handles, no generics/`Vec<String>`/`dyn` on the boundary, `API_VERSION: u32`. This is the *only* contract a mod links against. Never `horizon-client` internals directly. 2. `horizon-sdk` — a safe, idiomatic, header-only wrapper over `abi`. Compiled *into* the mod, so `#[inline(always)]` newtypes (`EntityRef`, `Game`, `ServerCtx`) optimize to the same asm as direct access. This is where canonical Rust lives: iterators, `Result`, lifetimes, `#[mixin]` proc-macros. 3. Mods ship as compiled `cdylib` (`.so/.dll/.dylib`), one artifact per `os x arch` (`win/linux/mac x x86_64/aarch64`). The registry keeps all binaries per version, the launcher downloads only the client's own. No source rebuild on player PCs — this fixes weak PCs and closed-source mods at once. 4. Hooks, not patches. Today's `[[injection]] target = Game::native_key` becomes a stable exported hook slot with a signature hash, e.g. `horizon_hook_world_tick__v7__a3f9c1`. The loader resolves it with `dlsym` at runtime and installs a `retour`-style detour only if the hash matches. No mod: one predictable branch (`~0` cost). With mod: one indirect call. 5. Hot loop rule: boundary is `O(1)` per frame. The host hands the mod contiguous slices (`on_chunk_tick(pos: *const f32, vel: *mut f32, n: usize)`), the tight loop lives inside the mod where LLVM/LTO sees it. Private fields via runtime-queried offsets cached in a `static` — one `add` in the hot loop. Old `mod.so` built against `sdk v7` keeps working on a new client as long as `API_VERSION=7` symbols it uses are unchanged. **What changes for a mod — `zoom` example** Today (`horizon-mixin.toml` + source patch): ```toml [[injection]] id = "key" target = "horizon_client::game::native_hooks::Game<'_>::native_key" helper = "key.rs" bindings = [{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" }] ``` ```rust // key.rs, compiled TOGETHER with the game fn zoom_key(game: &mut crate::game::Game<'_>, key: &str, pressed: bool) { use crate::game::official_zoom as zoom; if !game.native_on(zoom::ID) { return; } let bound = game.native_mod_key(zoom::ID, zoom::KEY, zoom::DEFAULT_KEY); ... } ``` Proposed: ```rust // src/hooks.rs, compiled INSIDE mod.so against horizon-sdk v7 #[horizon_sdk::mixin(Game::native_key)] fn zoom_key(game: &mut Game, key: &str, pressed: bool) { if !game.is_enabled(ID) { return; } if key != game.mod_key(ID, KEY, DEFAULT_KEY) { return; } zoom::key(game.is_playing(), pressed, |n| game.setting(ID, n)); } ``` `runtime.rs` (settings, `STATE`, all `#[test]`) moves over 1:1 — it never touched `Game` anyway. `horizon-mixin.toml` disappears, `compatibility.json: horizon_revision` becomes `api_version = 7`. Same pattern covers `coords-hud/fps-overlay/keystrokes/minimap` (a handful of `HEAD` hooks each); `recipes` only rewrites its `glue.rs` into `From` impls over `repr(C)` slices; `smp` keeps its pure-logic files untouched and rewrites only `glue.rs` plus one-function hook shims. **Pros vs current `.hnmod`** * No 7–12 min rebuild, no toolchain on player machines. Weak PCs just download a small binary. * Closed-source mods possible without leaking code; review happens on behavior + `manifest permissions + sigstore/minisign`, reproducible builds stay verifiable. * Mods survive client updates when the API they use didn't change — the current `horizon_revision` pin breaks on any commit. * Same Rust, same speed: hot-loop code is still Rust in the mod crate, no Lua/WASM boundary per entity. * Normal tooling returns: `cargo add horizon-sdk`, `rust-analyzer`, `docs.rs`, `cargo test` against a fake `ApiTable` instead of rebuilding the whole game for checks. **Remaining cons (honest)** * Arbitrary native code on clients — needs a real trust model: per-mod permissions, signing, `revoked.toml` already exists, plus sandboxing what *can* be sandboxed (fs/net reviewed via manifest, not technically enforced). * `unsafe` boundary to maintain: `#[repr(C)]` layout asserts, `catch_unwind` on every `extern "C"` entry, `Send/Sync` audits, no panics/`async`/allocation across FFI. * For consistent and equal support of all OS/arch combinations supported by the project, a modder must upload binaries for every os/arch combo without exception. That is up to 6 binaries per release to build/host/CI — needs infra builds (GitHub Actions matrix does this well) so authors without a given machine still ship for it. * Hook-slot discipline forever: hook points only ever added, never renamed; per-symbol signature hashes; breaking changes need a new `API_VERSION` and a compat shim. **Maintenance** API evolves additively, checked in CI by `api.dump.json` diff + `semver-checks` on `horizon-abi`. Launcher resolves `(api_version, os, arch)` from `index.json`. `sdk` is semver'd with the API major; old mods keep their bundled `sdk` and keep loading. Breaking changes bump the major and old mods fail fast with "built for API 7, client offers 8" instead of UB. **Fit with #5638 / #6216 (typed mod API) and #4953 (what a large tech mod needs)** This proposal only changes *how* mods attach to the hook points, not the points themselves. #5638 / #6216 is the natural step 1: the generated `Hooks` trait (`listen/cancel/replace/collect`), `Host` and level hosts, `entry::main_with`, attachments, inter-mod dependencies, renderer hooks — with measured trait-mod rebuilds in seconds instead of minutes. This `cdylib` proposal is step 2 on top of it: take that same generated API as `horizon-sdk`, stabilize it as `horizon-abi`, and ship it as prebuilt binaries instead of relinking sources on player machines. #5638 fixes the dev loop; the stable ABI additionally fixes weak PCs, closed-source mods, and survival across client updates. What still needs design beyond hooks — and matches the `Not started` remainder of #4953 — is a stable registration ABI (code-side blocks/items/entities with network IDs, attachments, data maps, custom ingredients) and stable capability vtables with batch ticking for fluids/energy/pipes/instanced moving parts, where a per-block-entity boundary would be too fine-grained. This keeps the current hook-point design (which is good — the hook-point catalog keeps growing, and community mods beyond the official set may already need different hooks) and only changes *how* mods attach to it: dylib + hash-checked slot instead of source merge + full rebuild.
Author
Owner

@johalun commented on GitHub (Nov 1, 2026):

Proper sandboxing sounds like a nightmare and I wouldn't run any compiled mods without it. Personally I'd go with Lua and disable all os and io libraries for sandboxing. I wrote a couple of mods for Minetest which uses Lua for modding and with a proper modding API and hook interface I think it can be really good. You can also do nice things like live edit and reload during mod development. For CPU intensive operations you provide native functions. There's also JIT to help with performance if the Lua code is doing a lot of computing.

<!-- gh-comment-id:6563512651 --> @johalun commented on GitHub (Nov 1, 2026): Proper sandboxing sounds like a nightmare and I wouldn't run any compiled mods without it. Personally I'd go with Lua and disable all os and io libraries for sandboxing. I wrote a couple of mods for Minetest which uses Lua for modding and with a proper modding API and hook interface I think it can be really good. You can also do nice things like live edit and reload during mod development. For CPU intensive operations you provide native functions. There's also JIT to help with performance if the Lua code is doing a lot of computing.
bsakaguchi changed title from [GH-ISSUE #5109] Reconsider the all-native modding direction: please keep a runtime mod-loading path to [GH-ISSUE #5109] Proposal (sketch): runtime mod loading via stable-ABI native plugins — a vision for modding's future 2026-11-03 04:05:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1556
No description provided.