Skip to content

Commit 1d95929

Browse files
hyperpolymathclaude
andcommitted
rename: pick up typedwasm.ownership section name from typed-wasm#65
Producer-side update for the wasm custom-section rename `affinescript.ownership` → `typedwasm.ownership`. The section name flows in through `typed_wasm_verify::OWNERSHIP_SECTION_NAME`; this PR bumps that rev pin to typed-wasm#65 (`a1935c16`) and updates the 5 in-source comments that referenced the old name. > ⚠️ The rev pin currently points at typed-wasm#65's branch HEAD. > RE-BUMP to the post-merge SHA on `origin/main` before this PR > merges, otherwise the dangling-ref risk grows if typed-wasm's > branch is auto-deleted after merge. Touched: - Cargo.toml — bump typed-wasm-verify rev + note re-bump obligation - Cargo.lock — `indexmap` 2.13 → 2.14 (required by the new wasmparser 0.250.0 that the bumped typed-wasm-verify pulls in) - src/ephapax-wasm/src/lib.rs — 4 doc-comment references - src/ephapax-cli/src/main.rs — 1 doc-comment reference Tests: `cargo test -p ephapax-wasm` → **79/79 passing** against the new typed-wasm-verify rev (proves the integration with the renamed `OWNERSHIP_SECTION_NAME` constant). Sibling PRs (must merge first): - typed-wasm#65 — source-of-truth constant + verifier - hyperpolymath/affinescript PR — producer-side emit + parse Refs: estate disentangling — Ephapax must not embed AffineScript's brand in its wire format. typed-wasm now owns a producer-neutral section name; both producers consume it via the shared crate. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 109b33f commit 1d95929

4 files changed

Lines changed: 42 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 32 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ ephapax-lsp = { path = "src/ephapax-lsp" }
5151
ephapax-package = { path = "src/ephapax-package" }
5252
ephapax-vram-cache = { path = "src/ephapax-vram-cache" }
5353

54-
# Sibling-repo crates
55-
typed-wasm-verify = { git = "https://github.com/hyperpolymath/typed-wasm", rev = "67006edddef34e86be2afd97f23d0dfb1191b228" }
54+
# Sibling-repo crates.
55+
# NOTE: rev pin currently points at typed-wasm#65 branch HEAD for the
56+
# `typedwasm.ownership` section rename. RE-BUMP to the post-merge SHA
57+
# on `origin/main` before this PR merges.
58+
typed-wasm-verify = { git = "https://github.com/hyperpolymath/typed-wasm", rev = "a1935c16176567e0470de2feedf9c37a87dc0158" }
5659

5760
# External dependencies
5861
serde = { version = "1.0", features = ["derive"] }

src/ephapax-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ enum Commands {
104104
mode: String,
105105

106106
/// Run the typed-wasm L7+L10 verifier on the emitted module.
107-
/// Reads the `affinescript.ownership` custom section and
107+
/// Reads the `typedwasm.ownership` custom section and
108108
/// reports any aliasing / linearity violations. Non-zero exit
109109
/// if any are found.
110110
#[arg(long)]

src/ephapax-wasm/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ struct UserFnInfo {
175175
#[allow(dead_code)]
176176
param_names: Vec<String>,
177177
/// Whether each parameter is linear (must-use-once). Drives the
178-
/// `affinescript.ownership` custom section emitted by
178+
/// `typedwasm.ownership` custom section emitted by
179179
/// [`Codegen::emit_ownership_section`].
180180
param_linear: Vec<bool>,
181181
}
@@ -1269,7 +1269,7 @@ impl Codegen {
12691269
self.module.section(&data);
12701270
}
12711271

1272-
/// Emit the `affinescript.ownership` custom section if any user
1272+
/// Emit the `typedwasm.ownership` custom section if any user
12731273
/// function takes a Linear parameter. The section is consumed by
12741274
/// `typed-wasm-verify` (and by affinescript's OCaml verifier) to
12751275
/// enforce L7 + L10 across emitted wasm modules. Functions with no
@@ -4569,10 +4569,10 @@ mod tests {
45694569
}
45704570

45714571
// -----------------------------------------------------------------------
4572-
// affinescript.ownership custom section (C6)
4572+
// typedwasm.ownership custom section (C6)
45734573
// -----------------------------------------------------------------------
45744574

4575-
/// Locate the `affinescript.ownership` custom section in a wasm
4575+
/// Locate the `typedwasm.ownership` custom section in a wasm
45764576
/// module's bytes and return its payload, or None if the section
45774577
/// isn't present.
45784578
fn ownership_payload(wasm: &[u8]) -> Option<Vec<u8>> {

0 commit comments

Comments
 (0)