mirror of
https://github.com/horizon-rust/horizon-mixins.git
synced 2026-12-03 19:34:02 +07:00
[PR #17] [MERGED] fix: index production test cfg modules #19
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-mixins#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-mixins/pull/17
Author: @arismoko
Created: 10/31/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @levzzz5154
Base:
main← Head:fix/cfg-test-modules📝 Commits (1)
00a8371fix: index production test cfg modules📊 Changes
4 files changed (+141 additions, -24 deletions)
View changed files
📝
crates/horizon-mixins-cli/tests/integration.rs(+22 -0)📝
crates/horizon-mixins-core/src/index.rs(+110 -16)📝
crates/horizon-mixins-core/src/plan.rs(+1 -1)📝
docs/boundary-head-and-modules.md(+8 -7)📄 Description
Summary
Treat
#[cfg(not(test))]as active and#[cfg(test)]as inactive while indexing production source. horizon-mixins only stages the production build, wherecfg(test)is never set, so these two predicates are known. Othercfgandcfg_attrpredicates remain unresolved. This lets mixins stage against the library/executable split in horizon-rust/horizon#5446, which otherwise fails withE_MODULE: module destination must be an indexed Rust source file.Field attribute checks in bridges and state remain conservative because conditional fields affect layout and generated code.
Validation
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo testcd85269d5931bb8a39ad3635c9276fa21652561d, the original tool fails with the error above; this change stages eight injections and one module. The sample revision pin was set to that head for this check.horizon-clientwithcargo build --profile fast -p horizon-clienton Linux. Ran the sample offscreen on the server thread withhorizon-ctland a fresh game home. The machine took four cobblestone from the west chest, processed them, and sent four stone through the east pipe into the output chest.🤖 Generated with Dyna.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.