[PR #4590] [MERGED] Launcher: native builds use the fast profile by default, with a build status #5715

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4590
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: launcher/native-fast-profile


📝 Commits (10+)

  • aba29be Launcher: native mods are on by default; Build moves to the Mods page
  • d9a2f15 Merge launcher/native-mods-on-by-default (#3855) into launcher/native-mods-where
  • 8ee3055 Launcher: show where native mods are installed and what each instance's build plays
  • f2a3a76 Launcher: simpler Build condition for clippy 1.95
  • 32cce66 Launcher: call the Horizon update button "Rebuild on Horizon X"
  • 32e8e51 Merge main into native-mods-on-by-default
  • ddf1be8 Launcher i18n: drop removed native-mods strings, add Polish for the new ones
  • 2e52f01 Merge main into native-mods-where
  • e7fae3d Launcher i18n: drop removed native-mods strings, add Polish for the new ones
  • d2c4e9a Merge main into native-mods-on-by-default; the version-mismatch panel moves to the Mods page's Native build row

📊 Changes

18 files changed (+1371 additions, -294 deletions)

View changed files

📝 docs/launcher-commands.md (+4 -3)
📝 docs/native-mods.md (+47 -18)
📝 launcher/lang/de.json (+18 -6)
📝 launcher/lang/es.json (+18 -6)
📝 launcher/lang/fr.json (+18 -6)
📝 launcher/lang/pl.json (+18 -6)
📝 launcher/lang/ru.json (+18 -6)
📝 launcher/lang/uk.json (+18 -6)
📝 launcher/lang/zh.json (+18 -6)
📝 launcher/src/backend.rs (+6 -6)
📝 launcher/src/cli.rs (+51 -28)
📝 launcher/src/github_mods_page.rs (+1 -2)
📝 launcher/src/instances_page.rs (+10 -0)
📝 launcher/src/lib.rs (+1 -0)
📝 launcher/src/main.rs (+66 -64)
📝 launcher/src/mods_page.rs (+222 -34)
📝 launcher/src/native_mods.rs (+554 -97)
➕ launcher/src/native_status.rs (+283 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Stacked on #3891 (which holds #3855): merge #3891 first, then this, then #3964. #3891 is merged in (9b6aa13); #3855 moved Native mods from Settings to the Mods page, so the build's time, how it ended and the Release build switch are on the instance's "Native build" row there now, not in Settings.

Native-mod builds compiled --profile release (thin LTO, one codegen unit, no incremental), so every mod change recompiled all of horizon-client with LTO (~3 min).

  • fast is the default profile (the workspace's [profile.fast]). "Release build: slower to build, slightly faster game" on the Mods page's Native build row, horizon-launcher settings native-profile fast|release, and native-build --profile fast|release pick release. The profile was already in the build key (version_for); target/fast and target/release coexist. native-build is not an MCP tool (player's switch), so nothing to expose there.
  • Incremental works: the stage is one stable folder and sync already writes only changed files (checked); the build now removes CARGO_INCREMENTAL/CARGO_BUILD_INCREMENTAL from cargo's environment. Mods switching on the same commit reuse the same native/target/.
  • Build status: before building, "Up to date (no build needed)", "Incremental rebuild: mods X, Y / Horizon commit a to b / horizon-mixins" (compared with native/built.json, per profile), or "First build: the whole game (several minutes)". While compiling: crates done of total (cargo's progress bar, CARGO_TERM_PROGRESS_WHEN=always), current crate, profile, elapsed time. After: "Built in 42 s (fast, incremental)". Shown in the Mods page's Native build row and on native-build's stderr (with a time prefix). build.log is unchanged except it leaves out the progress bar redraws.
  • Docs: native-mods.md (old timing tables marked as release numbers, no new numbers), launcher-commands.md regenerated.
  • Tests: plan classification, cargo output parsing, profile setting, cache key per profile.

backend.rs: one Settings::native_release field (4 lines), needed for the persisted setting; everything else is in native_mods / cli / main. Not run: a real native build (too heavy for the dev machine).

Checked: cargo clippy --all-targets -D warnings, cargo test (launcher), fmt.

🤖 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/4590 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `launcher/native-fast-profile` --- ### 📝 Commits (10+) - [`aba29be`](https://github.com/horizon-rust/horizon/commit/aba29be6af0480c0663992641ef32940ea1e938e) Launcher: native mods are on by default; Build moves to the Mods page - [`d9a2f15`](https://github.com/horizon-rust/horizon/commit/d9a2f157a39a8bf48b1c796261ab71c11fddbbe9) Merge launcher/native-mods-on-by-default (#3855) into launcher/native-mods-where - [`8ee3055`](https://github.com/horizon-rust/horizon/commit/8ee30558dada58d7e43003a3ab1861aabea9291b) Launcher: show where native mods are installed and what each instance's build plays - [`f2a3a76`](https://github.com/horizon-rust/horizon/commit/f2a3a76c07c73a4f6f74e1b1bfd244a4153760df) Launcher: simpler Build condition for clippy 1.95 - [`32cce66`](https://github.com/horizon-rust/horizon/commit/32cce66761e314880aae2f0f9b4403a8dd50877d) Launcher: call the Horizon update button "Rebuild on Horizon X" - [`32e8e51`](https://github.com/horizon-rust/horizon/commit/32e8e51cfc9f0dad59f7ff5626fefc5f7189261c) Merge main into native-mods-on-by-default - [`ddf1be8`](https://github.com/horizon-rust/horizon/commit/ddf1be8050a000840e131121207f8954b29d6a9e) Launcher i18n: drop removed native-mods strings, add Polish for the new ones - [`2e52f01`](https://github.com/horizon-rust/horizon/commit/2e52f01d71bd1aa4c48cc51e7b1c931734a1e644) Merge main into native-mods-where - [`e7fae3d`](https://github.com/horizon-rust/horizon/commit/e7fae3d587316aa9dbf93aee3da0ebc9f3ed0ce8) Launcher i18n: drop removed native-mods strings, add Polish for the new ones - [`d2c4e9a`](https://github.com/horizon-rust/horizon/commit/d2c4e9ac8789102310308e8b75538cfa8c0ad529) Merge main into native-mods-on-by-default; the version-mismatch panel moves to the Mods page's Native build row ### 📊 Changes **18 files changed** (+1371 additions, -294 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+4 -3) 📝 `docs/native-mods.md` (+47 -18) 📝 `launcher/lang/de.json` (+18 -6) 📝 `launcher/lang/es.json` (+18 -6) 📝 `launcher/lang/fr.json` (+18 -6) 📝 `launcher/lang/pl.json` (+18 -6) 📝 `launcher/lang/ru.json` (+18 -6) 📝 `launcher/lang/uk.json` (+18 -6) 📝 `launcher/lang/zh.json` (+18 -6) 📝 `launcher/src/backend.rs` (+6 -6) 📝 `launcher/src/cli.rs` (+51 -28) 📝 `launcher/src/github_mods_page.rs` (+1 -2) 📝 `launcher/src/instances_page.rs` (+10 -0) 📝 `launcher/src/lib.rs` (+1 -0) 📝 `launcher/src/main.rs` (+66 -64) 📝 `launcher/src/mods_page.rs` (+222 -34) 📝 `launcher/src/native_mods.rs` (+554 -97) ➕ `launcher/src/native_status.rs` (+283 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. **Stacked on #3891** (which holds #3855): merge #3891 first, then this, then #3964. #3891 is merged in (`9b6aa13`); #3855 moved Native mods from Settings to the Mods page, so the build's time, how it ended and the Release build switch are on the instance's "Native build" row there now, not in Settings. Native-mod builds compiled `--profile release` (thin LTO, one codegen unit, no incremental), so every mod change recompiled all of horizon-client with LTO (~3 min). - **`fast` is the default profile** (the workspace's `[profile.fast]`). "Release build: slower to build, slightly faster game" on the Mods page's Native build row, `horizon-launcher settings native-profile fast|release`, and `native-build --profile fast|release` pick release. The profile was already in the build key (`version_for`); `target/fast` and `target/release` coexist. `native-build` is not an MCP tool (player's switch), so nothing to expose there. - **Incremental works**: the stage is one stable folder and `sync` already writes only changed files (checked); the build now removes `CARGO_INCREMENTAL`/`CARGO_BUILD_INCREMENTAL` from cargo's environment. Mods switching on the same commit reuse the same `native/target/`. - **Build status**: before building, "Up to date (no build needed)", "Incremental rebuild: mods X, Y / Horizon commit a to b / horizon-mixins" (compared with `native/built.json`, per profile), or "First build: the whole game (several minutes)". While compiling: crates done of total (cargo's progress bar, `CARGO_TERM_PROGRESS_WHEN=always`), current crate, profile, elapsed time. After: "Built in 42 s (fast, incremental)". Shown in the Mods page's Native build row and on `native-build`'s stderr (with a time prefix). `build.log` is unchanged except it leaves out the progress bar redraws. - Docs: native-mods.md (old timing tables marked as release numbers, no new numbers), launcher-commands.md regenerated. - Tests: plan classification, cargo output parsing, profile setting, cache key per profile. backend.rs: one `Settings::native_release` field (4 lines), needed for the persisted setting; everything else is in native_mods / cli / main. Not run: a real native build (too heavy for the dev machine). Checked: `cargo clippy --all-targets -D warnings`, `cargo test` (launcher), fmt. 🤖 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:14:31 +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#5715
No description provided.