[PR #1449] [MERGED] wasmtime 48 LTS: one wasm-tools version for the runtime, packing and the SDK #3531

Closed
opened 2026-11-03 04:10:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1449
Author: @ludovic111
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: chore/wasmtime-48


📝 Commits (3)

  • 3d4b63c wasmtime 48 LTS: one wasm-tools version for the runtime, packing and the SDK
  • 48121cb Merge origin/main into chore/wasmtime-48
  • 7d4792f Mods API reference test: follow wit-parser 0.254 (FixedLengthList, Param)

📊 Changes

5 files changed (+242 additions, -321 deletions)

View changed files

📝 Cargo.lock (+229 -310)
📝 crates/horizon-mod-sdk/Cargo.toml (+1 -1)
📝 crates/horizon-mods/Cargo.toml (+5 -5)
📝 crates/horizon-mods/tests/api_reference.rs (+2 -2)
📝 docs/mods.md (+5 -3)

📄 Description

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

What

Workstream 6 (review-plan.md): one wasm-tools version. The build carried three: wasmtime 36 read WebAssembly with wasm-tools 0.236, wit-component (cargo horizon-mod, the sandbox tests) used 0.239 and the SDK's wit-bindgen 0.57 used 0.247: three copies each of wasmparser, wasm-encoder, wit-parser, plus two of wasm-metadata and wit-component.

No wasmtime release uses 0.247 (crates.io index: 44 → 0.246, 45 → 0.248), so everything moves to 0.254:

  • wasmtime 36.0.18 → 48.0.7, the next long-term-support line (every 12th release; fixes until August 2028, 36's end in August 2027),
  • wit-component / wit-parser 0.239 → 0.254,
  • SDK wit-bindgen 0.57.1 → 0.60.0 (the release on wit-parser 0.254).

No code change was needed. horizon-mods' rust-version goes 1.86 → 1.95 (wasmtime 48's MSRV); CI builds with stable. docs/mods.md updated (version, LTS end, MSRV).

Numbers (Mac mini, clean cargo build --workspace minus the two guests, -j10, sccache off; run back to back, but the second run had less load from other agents: horizon-* crates took 103 → 84 unit-s in the same two runs)

before (main) after
units 506 501
wasm stack (wasmtime, cranelift, wasm-tools, pulley, gimli…) 81 units, 132 unit-s 72 units, 97 unit-s
whole build 424 unit-s, 75.8 s 334 unit-s, 62.2 s (load-skewed, see above)
cargo tree -d (host, crates with 2+ versions) 20 (43 versions) 15 (30 versions)

Gone from the duplicates: wasmparser, wasm-encoder, wit-parser, wit-component, wasm-metadata, foldhash. New: mach2 (0.4 from the audio stack, 0.6 from wasmtime 48, macOS only).

Mod hook cost (cargo test -p horizon-mods --release --test sandbox -- --ignored --nocapture hook_overhead, 4 runs each, busy machine):

wasmtime 36 wasmtime 48
tick with no mod 1.3 ns 1.0–1.1 ns
empty tick hook 69–114 ns 87–95 ns
empty frame hook 69–129 ns 87–135 ns
coords-hud tick 1.6–3.3 µs 1.1–1.8 µs

Self-check

  • cargo fmt --all -- --check: OK
  • cargo clippy --workspace --all-targets -- -D warnings: OK; cargo clippy -p coords-hud -p horizon-mods-test-guest -p horizon-mod-sdk --target wasm32-unknown-unknown -- -D warnings: OK
  • cargo test -p horizon-mods (builds both guests with wit-bindgen 0.60, packs them with wit-component 0.254, runs them in wasmtime 48): 11 + 12 passed, 1 ignored (the benchmark above)
  • cargo test -p cargo-horizon-mod -p horizon-mod-sdk -p horizon-port-pack: passed
  • cargo horizon-mod build in coords-hud (componentize + the import check): Built target/horizon-mod/coords_hud.hmod
  • launcher/Cargo.lock: unchanged (the launcher only reaches horizon-mods without its runtime).
  • tools/parity.py --changed: Cargo.lock is a root input, so all 329: left to CI.

Conflicts to expect

#1447 (the mods feature) also edits crates/horizon-mods/Cargo.toml and docs/mods.md, on lines a few apart, and Cargo.lock by one line: whichever lands second rebases with cargo metadata regenerating the lock.

Needs Ludovic

Nothing to decide; the MSRV bump to Rust 1.95 is the one visible change for contributors.

🤖 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/1449 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/wasmtime-48` --- ### 📝 Commits (3) - [`3d4b63c`](https://github.com/horizon-rust/horizon/commit/3d4b63c19e0dde3e6aab138e056e2445dab0c42a) wasmtime 48 LTS: one wasm-tools version for the runtime, packing and the SDK - [`48121cb`](https://github.com/horizon-rust/horizon/commit/48121cb10932e901353603ebdcb94daaba5e0ff8) Merge origin/main into chore/wasmtime-48 - [`7d4792f`](https://github.com/horizon-rust/horizon/commit/7d4792fb3166b83674b2abf048293908deb7cd9b) Mods API reference test: follow wit-parser 0.254 (FixedLengthList, Param) ### 📊 Changes **5 files changed** (+242 additions, -321 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+229 -310) 📝 `crates/horizon-mod-sdk/Cargo.toml` (+1 -1) 📝 `crates/horizon-mods/Cargo.toml` (+5 -5) 📝 `crates/horizon-mods/tests/api_reference.rs` (+2 -2) 📝 `docs/mods.md` (+5 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Workstream 6 (review-plan.md): **one wasm-tools version**. The build carried three: wasmtime 36 read WebAssembly with wasm-tools 0.236, `wit-component` (cargo horizon-mod, the sandbox tests) used 0.239 and the SDK's `wit-bindgen` 0.57 used 0.247: three copies each of wasmparser, wasm-encoder, wit-parser, plus two of wasm-metadata and wit-component. No wasmtime release uses 0.247 (crates.io index: 44 → 0.246, 45 → 0.248), so everything moves to **0.254**: - wasmtime 36.0.18 → **48.0.7**, the next long-term-support line (every 12th release; fixes until August 2028, 36's end in August 2027), - wit-component / wit-parser 0.239 → 0.254, - SDK wit-bindgen 0.57.1 → 0.60.0 (the release on wit-parser 0.254). No code change was needed. horizon-mods' `rust-version` goes 1.86 → 1.95 (wasmtime 48's MSRV); CI builds with stable. docs/mods.md updated (version, LTS end, MSRV). ## Numbers (Mac mini, clean `cargo build --workspace` minus the two guests, `-j10`, sccache off; run back to back, but the second run had less load from other agents: horizon-* crates took 103 → 84 unit-s in the same two runs) | | before (main) | after | |---|---|---| | units | 506 | 501 | | wasm stack (wasmtime, cranelift, wasm-tools, pulley, gimli…) | 81 units, 132 unit-s | 72 units, 97 unit-s | | whole build | 424 unit-s, 75.8 s | 334 unit-s, 62.2 s (load-skewed, see above) | | `cargo tree -d` (host, crates with 2+ versions) | 20 (43 versions) | **15 (30 versions)** | Gone from the duplicates: wasmparser, wasm-encoder, wit-parser, wit-component, wasm-metadata, foldhash. New: mach2 (0.4 from the audio stack, 0.6 from wasmtime 48, macOS only). Mod hook cost (`cargo test -p horizon-mods --release --test sandbox -- --ignored --nocapture hook_overhead`, 4 runs each, busy machine): | | wasmtime 36 | wasmtime 48 | |---|---|---| | tick with no mod | 1.3 ns | 1.0–1.1 ns | | empty tick hook | 69–114 ns | 87–95 ns | | empty frame hook | 69–129 ns | 87–135 ns | | coords-hud tick | 1.6–3.3 µs | 1.1–1.8 µs | ## Self-check - `cargo fmt --all -- --check`: OK - `cargo clippy --workspace --all-targets -- -D warnings`: OK; `cargo clippy -p coords-hud -p horizon-mods-test-guest -p horizon-mod-sdk --target wasm32-unknown-unknown -- -D warnings`: OK - `cargo test -p horizon-mods` (builds both guests with wit-bindgen 0.60, packs them with wit-component 0.254, runs them in wasmtime 48): 11 + 12 passed, 1 ignored (the benchmark above) - `cargo test -p cargo-horizon-mod -p horizon-mod-sdk -p horizon-port-pack`: passed - `cargo horizon-mod build` in coords-hud (componentize + the import check): `Built target/horizon-mod/coords_hud.hmod` - launcher/Cargo.lock: unchanged (the launcher only reaches horizon-mods without its runtime). - `tools/parity.py --changed`: Cargo.lock is a root input, so all 329: left to CI. ## Conflicts to expect #1447 (the `mods` feature) also edits crates/horizon-mods/Cargo.toml and docs/mods.md, on lines a few apart, and Cargo.lock by one line: whichever lands second rebases with `cargo metadata` regenerating the lock. ## Needs Ludovic Nothing to decide; the MSRV bump to Rust 1.95 is the one visible change for contributors. 🤖 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 04:10:13 +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#3531
No description provided.