[PR #3371] [MERGED] Docs: WebAssembly code mods are gone; content and native mods remain #4938

Closed
opened 2026-11-03 05:09:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3371
Author: @ludovic111
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: draft/remove-wasm-mods-docs


📝 Commits (10+)

  • 708f0b4 Docs: WebAssembly code mods are gone; content and native mods remain
  • 0c9a493 Crates: remove the WebAssembly mod runtime, its SDK and the official WebAssembly mods
  • 64ff138 Launcher: WebAssembly mods need a native port
  • 7d43179 Docs: the official native mods in the hook points section
  • b25d588 Merge branch 'draft/remove-wasm-mods-game' into draft/remove-wasm-mods-crates
  • 1afbdca Merge branch 'draft/remove-wasm-mods-crates' into draft/remove-wasm-mods-launcher
  • 029870b Merge branch 'draft/remove-wasm-mods-launcher' into draft/remove-wasm-mods-docs
  • 2cd11c9 Merge branch 'draft/remove-wasm-mods-game' into draft/remove-wasm-mods-crates
  • 953a5a8 Merge branch 'draft/remove-wasm-mods-launcher' into draft/remove-wasm-mods-docs
  • a167a89 Merge branch 'draft/remove-wasm-mods-crates' into draft/remove-wasm-mods-launcher

📊 Changes

102 files changed (+396 additions, -11617 deletions)

View changed files

📝 .github/workflows/ci.yml (+4 -5)
📝 AGENTS.md (+2 -5)
📝 Cargo.lock (+5 -815)
📝 Cargo.toml (+0 -13)
📝 README.md (+1 -1)
📝 ROADMAP.md (+9 -9)
📝 crates/cargo-horizon-mod/Cargo.toml (+2 -2)
📝 crates/cargo-horizon-mod/src/check.rs (+18 -167)
📝 crates/cargo-horizon-mod/src/main.rs (+38 -196)
➖ crates/cargo-horizon-mod/template/Cargo.toml.in (+0 -14)
➖ crates/cargo-horizon-mod/template/horizon-mod.toml (+0 -12)
➖ crates/cargo-horizon-mod/template/src/lib.rs (+0 -19)
➖ crates/cargo-horizon-mod/template/tests/hello.toml (+0 -14)
📝 crates/horizon-client/src/game/native_hooks.rs (+1 -1)
➖ crates/horizon-mod-sdk/Cargo.toml (+0 -13)
➖ crates/horizon-mod-sdk/examples/beacons/Cargo.toml (+0 -16)
➖ crates/horizon-mod-sdk/examples/beacons/horizon-mod.toml (+0 -8)
➖ crates/horizon-mod-sdk/examples/beacons/src/lib.rs (+0 -103)
➖ crates/horizon-mod-sdk/examples/beacons/tests/beacons.toml (+0 -39)
➖ crates/horizon-mod-sdk/examples/coords-hud/Cargo.toml (+0 -16)

...and 80 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The docs part of removing WebAssembly code mods, the last layer of the stack #3350 (game) → #3351 (crates) → #3353 (launcher) → this one. Draft: it stays draft until 2–3 of the removal PRs' prerequisites are merged and live (the gate list in #3350).

  • docs/mods.md, from 691 lines to about 215:
    • the two kinds that run: content mods (.hmod with only registries) and native mods (.hnmod);
    • playing with mods; making a content mod with cargo horizon-mod (checked against crates/cargo-horizon-mod); publishing;
    • Horizon's official mods, now native in horizon-rust/horizon-mods native/<name>/;
    • a short "WebAssembly code mods (removed)" section: what players see, and what the launcher does for community mods and modpacks (as #3353 does: hidden from search, a required one still installs and is listed as not running, "needs a native port").
    • The anchors other docs link to are kept.
  • Deleted: docs/api/mods.md and docs/api/mods-reference.md (the code-mod API only).
  • docs/native-mods.md: a "Hook points" section (native_hooks.rs linked to it without one).
  • References fixed in: README, docs/README, api/README, data-formats, mod-index (the native-mod kind), server, stability, extras, graphics (Far View), how-horizon-is-built, mod-browser, modpacks, AGENTS.md (the crate table; the wasm-guest macOS note dropped).
  • Roadmap:
    • The five WebAssembly-API items are removed: server-mods, mod-screens, mod-world-items, machines-api, mod-languages.
    • Eight items are reworded for native mods.
    • tools/roadmap.py check --offline passes.
    • Revert roadmap/ if those items should stay as history.

Before ready:

  • The private horizon-site may link api/mods.md, mods-reference.md or the "test a mod" page; check it and fix there.
  • Run python3 tools/pr_ready.py.

Checked: tools/check_public_tree.py; Python tests 401 passed; every relative .md link and anchor in the touched files resolves (script).

Status 2026-10-29 (agent)

Rebased onto main 62a01db (stack head 7d43179); still a draft. The official mods' switch is live: horizon-mods#26 made Zoom, FPS Counter, Keystrokes and Minimap native-mod 2.0.0 on Nightly 6f8c7a0 (index checked; launcher 0.2.23 installs and builds Zoom 2.0.0 on fresh data, and its proof passes on that build). Still open before ready: Recipes' switch (native/recipes waits for a Nightly with horizon#3435), and native mods on by default in the launcher (item 3 of #3350's list).

One conflict: docs/extras.md's file table, with the crate split's new paths (horizon-client-render). Full pr_ready on this head before a formatting fix in #3350 (the only difference since): parity 354/355, the one failure tab_list (1/1000 player lists, a skin hash; the drafts don't touch skins), which then passed on this head and on main. The horizon-site check is still to do.

pr_ready --quick on 7d43179

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 62a01db8f, 7 min 47 s)

Check Result
Scope ⚠️ 130 files, +539 −14803; 10996 lines of code: over 500, split it if it can ship in parts; mixes CI, game, launcher
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ✅ 408 passed (1 min 0 s)
rustfmt ✅ (5 s)
clippy ✅ (5 s)
tests: workspace ✅ 2332 passed (3 min 35 s)
doc tests ✅ 0 passed (7 s)
content root tests ✅ 5 passed (1 min 15 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (35 s)
launcher tests ✅ 249 passed (1 min 4 s)
Parity ➖ 348 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 336 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3371 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `draft/remove-wasm-mods-docs` --- ### 📝 Commits (10+) - [`708f0b4`](https://github.com/horizon-rust/horizon/commit/708f0b48bf3093c48c7929bc456fb707c97ca363) Docs: WebAssembly code mods are gone; content and native mods remain - [`0c9a493`](https://github.com/horizon-rust/horizon/commit/0c9a49390ed1cac596e7db45c7d6d8e18e988db9) Crates: remove the WebAssembly mod runtime, its SDK and the official WebAssembly mods - [`64ff138`](https://github.com/horizon-rust/horizon/commit/64ff13890ab815873c2c2b87b2bb13eca4697afa) Launcher: WebAssembly mods need a native port - [`7d43179`](https://github.com/horizon-rust/horizon/commit/7d431798500d34a043caf8da07dfd0bd368abb43) Docs: the official native mods in the hook points section - [`b25d588`](https://github.com/horizon-rust/horizon/commit/b25d588c91866c3d73168751435d0d8ae9e1b8f3) Merge branch 'draft/remove-wasm-mods-game' into draft/remove-wasm-mods-crates - [`1afbdca`](https://github.com/horizon-rust/horizon/commit/1afbdca0f0781dd549171f4f4ef97a3c62ae47db) Merge branch 'draft/remove-wasm-mods-crates' into draft/remove-wasm-mods-launcher - [`029870b`](https://github.com/horizon-rust/horizon/commit/029870bb90e40306606520e6216943769b6bda41) Merge branch 'draft/remove-wasm-mods-launcher' into draft/remove-wasm-mods-docs - [`2cd11c9`](https://github.com/horizon-rust/horizon/commit/2cd11c926fba6720dbee5a0f06cb3d850b2f63d8) Merge branch 'draft/remove-wasm-mods-game' into draft/remove-wasm-mods-crates - [`953a5a8`](https://github.com/horizon-rust/horizon/commit/953a5a84eee2e8b69772982fe85e35430cde5d6f) Merge branch 'draft/remove-wasm-mods-launcher' into draft/remove-wasm-mods-docs - [`a167a89`](https://github.com/horizon-rust/horizon/commit/a167a892155924796268dd045da9741e9be71d30) Merge branch 'draft/remove-wasm-mods-crates' into draft/remove-wasm-mods-launcher ### 📊 Changes **102 files changed** (+396 additions, -11617 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+4 -5) 📝 `AGENTS.md` (+2 -5) 📝 `Cargo.lock` (+5 -815) 📝 `Cargo.toml` (+0 -13) 📝 `README.md` (+1 -1) 📝 `ROADMAP.md` (+9 -9) 📝 `crates/cargo-horizon-mod/Cargo.toml` (+2 -2) 📝 `crates/cargo-horizon-mod/src/check.rs` (+18 -167) 📝 `crates/cargo-horizon-mod/src/main.rs` (+38 -196) ➖ `crates/cargo-horizon-mod/template/Cargo.toml.in` (+0 -14) ➖ `crates/cargo-horizon-mod/template/horizon-mod.toml` (+0 -12) ➖ `crates/cargo-horizon-mod/template/src/lib.rs` (+0 -19) ➖ `crates/cargo-horizon-mod/template/tests/hello.toml` (+0 -14) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+1 -1) ➖ `crates/horizon-mod-sdk/Cargo.toml` (+0 -13) ➖ `crates/horizon-mod-sdk/examples/beacons/Cargo.toml` (+0 -16) ➖ `crates/horizon-mod-sdk/examples/beacons/horizon-mod.toml` (+0 -8) ➖ `crates/horizon-mod-sdk/examples/beacons/src/lib.rs` (+0 -103) ➖ `crates/horizon-mod-sdk/examples/beacons/tests/beacons.toml` (+0 -39) ➖ `crates/horizon-mod-sdk/examples/coords-hud/Cargo.toml` (+0 -16) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The docs part of removing WebAssembly code mods, the last layer of the stack #3350 (game) → #3351 (crates) → #3353 (launcher) → this one. **Draft**: it stays draft until 2–3 of the removal PRs' prerequisites are merged and live (the gate list in #3350). - `docs/mods.md`, from 691 lines to about 215: - the two kinds that run: content mods (`.hmod` with only `registries`) and native mods (`.hnmod`); - playing with mods; making a content mod with `cargo horizon-mod` (checked against `crates/cargo-horizon-mod`); publishing; - Horizon's official mods, now native in horizon-rust/horizon-mods `native/<name>/`; - a short "WebAssembly code mods (removed)" section: what players see, and what the launcher does for community mods and modpacks (as #3353 does: hidden from search, a required one still installs and is listed as not running, "needs a native port"). - The anchors other docs link to are kept. - Deleted: `docs/api/mods.md` and `docs/api/mods-reference.md` (the code-mod API only). - `docs/native-mods.md`: a "Hook points" section (`native_hooks.rs` linked to it without one). - References fixed in: README, docs/README, api/README, data-formats, mod-index (the `native-mod` kind), server, stability, extras, graphics (Far View), how-horizon-is-built, mod-browser, modpacks, AGENTS.md (the crate table; the wasm-guest macOS note dropped). - Roadmap: - The five WebAssembly-API items are removed: `server-mods`, `mod-screens`, `mod-world-items`, `machines-api`, `mod-languages`. - Eight items are reworded for native mods. - `tools/roadmap.py check --offline` passes. - Revert `roadmap/` if those items should stay as history. **Before ready:** - The private horizon-site may link `api/mods.md`, `mods-reference.md` or the "test a mod" page; check it and fix there. - Run `python3 tools/pr_ready.py`. **Checked:** `tools/check_public_tree.py`; Python tests 401 passed; every relative `.md` link and anchor in the touched files resolves (script). ## Status 2026-10-29 (agent) Rebased onto main `62a01db` (stack head `7d43179`); still a draft. The official mods' switch is live: horizon-mods#26 made Zoom, FPS Counter, Keystrokes and Minimap native-mod 2.0.0 on Nightly `6f8c7a0` (index checked; launcher 0.2.23 installs and builds Zoom 2.0.0 on fresh data, and its proof passes on that build). Still open before ready: **Recipes' switch** (native/recipes waits for a Nightly with horizon#3435), and native mods on by default in the launcher (item 3 of #3350's list). One conflict: `docs/extras.md`'s file table, with the crate split's new paths (`horizon-client-render`). Full pr_ready on this head before a formatting fix in #3350 (the only difference since): parity 354/355, the one failure `tab_list` (1/1000 player lists, a skin hash; the drafts don't touch skins), which then passed on this head and on main. The horizon-site check is still to do. <details><summary>pr_ready --quick on 7d43179</summary> **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 62a01db8f, 7 min 47 s) | Check | Result | | --- | --- | | Scope | ⚠️ 130 files, +539 −14803; 10996 lines of code: over 500, split it if it can ship in parts; mixes CI, game, launcher | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ✅ 408 passed (1 min 0 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (5 s) | | tests: workspace | ✅ 2332 passed (3 min 35 s) | | doc tests | ✅ 0 passed (7 s) | | content root tests | ✅ 5 passed (1 min 15 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (35 s) | | launcher tests | ✅ 249 passed (1 min 4 s) | | Parity | ➖ 348 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 336 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:03 +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#4938
No description provided.