Skip to content

chore: de-rot G1a + git-rev core dep (bring to master) - #3

Merged
Kinflou merged 3 commits into
masterfrom
chore/derot-g0
Aug 30, 2026
Merged

chore: de-rot G1a + git-rev core dep (bring to master)#3
Kinflou merged 3 commits into
masterfrom
chore/derot-g0

Conversation

@Kinflou

@Kinflou Kinflou commented Aug 30, 2026

Copy link
Copy Markdown
Member

#2 was opened against chore/derot-g0 (the #1 branch) rather than master, so when #1 merged, G1a stayed on the feature branch. This PR brings it to master.

Contains, on top of G0 (already in master via #1):

  • G1a (9131fc5) — core's generate_rust ported verbatim into comline-codelib-gen (code_gen/rust/generator.rs); the C-FFI / abi_stable / lib_gen prototype gated for G2; _core the sole workspace member; core's 3 rust-codegen unit tests ported; continue-on-error removed from CI.
  • git-rev core dep (fb8313f) — comline-core = { git = "…/core", rev = "d8bc708" } instead of a local ../core/core path patch (CI has no sibling checkout). Sibling-checkout [patch] kept commented for local dev.

cargo test: 3 passed, fetching comline-core from git.

Kinflou and others added 3 commits August 31, 2026 06:49
Port comline-core's `codelib_gen::rust::generate_rust` verbatim into
`code_gen/rust/generator.rs` (renamed from the versioned `_1_7_0.rs`
stub, which matched a pre-audit `FrozenUnit`). `generation` and `core`
now emit byte-identical rust; the `find_generator` registry keeps its
version-keyed shape with one entry.

Gated for de-rot G2 (they target a core API that no longer exists —
removed `basic_storage`, `package_from_path_without_context`):
  - `code_gen::rust_c_ffi`, `code_gen::rust_abi_stable`
  - all of `lib_gen` (the lib/dylib packaging layer)
  - `code_gen::rust::generate_frozen_schemas_into_path` — deleted; the
    CLI is the composition root and owns that orchestration now.
The module bodies stay in-tree as the G2 starting point.

  - `_core/Cargo.toml`: drop `abi_stable`/`cbindgen`/`toml_edit`/`glob`/
    `heck` (only the gated modules used them).
  - workspace: `_core` is the sole member; `lua`/`luau` move to the
    "body port pending G2" list (same pre-audit-IR drift).
  - tests: port core's 3 rust-codegen unit tests; drop the `lib_gen`
    integration tests (orchestration path is gone).
  - CI: drop `continue-on-error` — `cargo build` / `cargo test` are green.

`cargo test`: 3 passed.
CI has no sibling `../core/core` checkout, so the workspace-root
`[patch.crates-io] comline-core = { path = "../core/core" }` from #1
failed to load the source (that job only stayed green because of the
`continue-on-error` this branch already removed).

Point `comline-core` at `core` by git rev (d8bc708 — post #40, current
`FrozenUnit`); published 0.1.0 is pre-audit and the ported generator
pattern-matches the new shape. Workspace-root `[patch]` onto the sibling
checkout is kept, commented, for local iteration.

`cargo build` / `cargo test` green fetching core from git — mirrors CI.
chore: de-rot G1a — working rust codegen in comline-codelib-gen
@Kinflou
Kinflou merged commit f17c210 into master Aug 30, 2026
2 checks passed
@Kinflou
Kinflou deleted the chore/derot-g0 branch August 30, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant