Repository navigation
refactor(rust): preserve codegen when splitting codecs - #419
Merged
Merged
Conversation
Cargo fmt follows module declarations. Check files loaded through include! explicitly and document both commands for local runs.
Document how to preserve the Rust module and item order for source-only splits, isolate existing optimizations in the baseline, and verify formatting coverage.
JasonXuDeveloper
added a commit
that referenced
this pull request
Nov 19, 2026
Merges `origin/main` (06cbf9a) into `feat/storage-layer`. That brings in 62 commits main has gained since the last sync, so the storage layer's final PR into main has fewer conflicts. The merge had no conflicts. What came in: - #401: TypeScript grids, and the runtime split into modules - #414: skills record why Rust, Go and TypeScript keep their standard block copies - #418: Go runtime and nino-gen prepare duplicate-key checks once per key type - #419: Rust `impls` codec files kept in one module through ordered `include!` fragments, and their rustfmt check in CI - the other main commits since the last sync: Go, Rust and TypeScript runtimes, nino-gen templates and fixtures, `Directory.Packages.props` bumps, skills and docs None of them touches Nino.Core or Nino.Generator. On the .NET side only Nino.Codegen, its tests, the GeneratorBenchmark project and `Directory.Packages.props` change. Checked locally: `dotnet build` (0 warnings), `Nino.UnitTests` on net10.0 (1,233 passed, 1 skipped), `tools/agents.sh --check`. --- _Generated by [Claude Code](https://claude.ai/code)_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
implsmodule. This preserves the original macro scope and codegen-unit assignment.include!.Verification
compare,text, andblockson macOS Arm64 withRUSTFLAGS=-Cllvm-args=-align-all-functions=6from the same checkout path. The flattened control retained current runtime logic, including Write Rust sets of fixed-size elements as one block #354, and the same benchmark sources. After normalizing symbol hashes and addresses, all 10,313compare, 67text, and 428blockssymbols matched, including the timed closures.compare, 81text, and 428blockssymbols. Compared with live main on x64, three drop-glue instantiations differed incompare. Thetextandblockssymbols matched.63ef558b), which already contained the initial split. Normalized code differs in fivecomparesymbols and twoblockssymbols. These are the date constructors, the DateTime decode fallback, and drop glue. Timed closure bodies andtextmatch. The earlier runner A/B put the median shift of the valid DateOnly block-read case within 0.5% on each sampled CPU.Closes #248
Generated by Codex