[PR #3360] [MERGED] Update launcher mixins for public modules and validated macros #4928

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

📋 Pull Request Information

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

Base: main ← Head: fix/launcher-mixins-public-modules


📝 Commits (2)

  • d3cb2f5 Pick up HEAD macro preservation in the launcher mixins pin
  • bd59c0b Pick up validated standard macros for body hooks

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 launcher/src/native_mods.rs (+1 -1)

📄 Description

🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself.

What and why

Update the launcher's default horizon-mixins revision to 3f99a5c60dfa311cc365524c44ae2fd799bfa1de so native bundles without an explicit tool pin can use:

  • visibility = "pub" on support modules, exposing APIs through existing crate dependencies.
  • Ordinary and cancellable HEAD-only hooks on bodies with preserved expression/statement macros.
  • Return/site hooks alongside validated format!, matches! and vec! inputs. The tool checks their identity and arguments while preserving invocation tokens. Hidden exits and selectors, variables or state constructors inside inputs are rejected explicitly.

Omitted module visibility still defaults to pub(crate), and explicit per-bundle tool pins continue to take precedence. The tool revision includes the Windows verbatim-output-path fix. Existing closure/control-flow restrictions remain; macro expansion and rewriting macro internals are not added.

The tool revision passes all 80 integration tests, formatting, Clippy, and privacy/cycle feasibility checks. Regression cases compile all existing hook fixtures with nested standard macros and check argument evaluation, owned-value drops, macro tail RETURN values, token preservation, hidden sites, implicit format captures and macro shadowing. See the standard macro contract.

Vanilla reference

None: Horizon's native mod build tooling.

Self-check

pr_ready (tools/pr_ready.py --base hr/main on cachyos-x8664, against hr/main at 11494e17f, 54 s)

Check Result
Scope ✅ 1 files, +1 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (25 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (8 s)
launcher tests ✅ 249 passed (21 s)
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Rebased onto upstream main at 11494e17f. The only change remains the default MIXINS_REV pin, from upstream’s 0d6b103c70633d8fd9443d8d0acd3aadaacedb06 to 3f99a5c60dfa311cc365524c44ae2fd799bfa1de.

🤖 Generated with OpenAI Codex.


🔄 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/3360 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-mixins-public-modules` --- ### 📝 Commits (2) - [`d3cb2f5`](https://github.com/horizon-rust/horizon/commit/d3cb2f5c29a785d3530e916373ff9b051c1bdcfe) Pick up HEAD macro preservation in the launcher mixins pin - [`bd59c0b`](https://github.com/horizon-rust/horizon/commit/bd59c0bab28b3ad31ebed973d2180b394d1da8af) Pick up validated standard macros for body hooks ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/native_mods.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself. ## What and why Update the launcher's default horizon-mixins revision to `3f99a5c60dfa311cc365524c44ae2fd799bfa1de` so native bundles without an explicit tool pin can use: - `visibility = "pub"` on support modules, exposing APIs through existing crate dependencies. - Ordinary and cancellable HEAD-only hooks on bodies with preserved expression/statement macros. - Return/site hooks alongside validated `format!`, `matches!` and `vec!` inputs. The tool checks their identity and arguments while preserving invocation tokens. Hidden exits and selectors, variables or state constructors inside inputs are rejected explicitly. Omitted module visibility still defaults to `pub(crate)`, and explicit per-bundle tool pins continue to take precedence. The tool revision includes the Windows verbatim-output-path fix. Existing closure/control-flow restrictions remain; macro expansion and rewriting macro internals are not added. The [tool revision](https://github.com/horizon-rust/horizon-mixins/commit/3f99a5c60dfa311cc365524c44ae2fd799bfa1de) passes all 80 integration tests, formatting, Clippy, and privacy/cycle feasibility checks. Regression cases compile all existing hook fixtures with nested standard macros and check argument evaluation, owned-value drops, macro tail RETURN values, token preservation, hidden sites, implicit format captures and macro shadowing. See the [standard macro contract](https://github.com/horizon-rust/horizon-mixins/blob/main/docs/standard-macros.md). ## Vanilla reference None: Horizon's native mod build tooling. ## Self-check **pr_ready** (`tools/pr_ready.py --base hr/main` on cachyos-x8664, against hr/main at 11494e17f, 54 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +1 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (25 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (8 s) | | launcher tests | ✅ 249 passed (21 s) | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Rebased onto upstream main at `11494e17f`. The only change remains the default `MIXINS_REV` pin, from upstream’s `0d6b103c70633d8fd9443d8d0acd3aadaacedb06` to `3f99a5c60dfa311cc365524c44ae2fd799bfa1de`. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:58 +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#4928
No description provided.