Skip to content

Commit 542885c

Browse files
authored
fix(ci): inline wasm-bindings license to unblock wasm-pack manifest parse (#687)
wasm-pack reads `rust/wasm-bindings/Cargo.toml` with its own Serde struct (`license: Option<String>`) before delegating to Cargo, so it fails to deserialize `license.workspace = true` (a TOML map) with: invalid type: map, expected a string for key `package.license` (See wasm-bindgen/wasm-pack#1359 — wasm-pack's manifest parser never fully supported the workspace-inheritance form for this field.) CI installs wasm-pack via `jetli/wasm-pack-action@v0.4.0` with `version: latest`, and a recent release now consistently trips this parser, leaving `main` red on the Build WASM step. Inline the `MPL-2.0` string in the wasm-bindings crate so wasm-pack can parse the manifest regardless of which release `latest` resolves to. The other workspace crates keep `license.workspace = true` — only the wasm-bindings crate is consumed by wasm-pack's own parser.
1 parent bfb5e1b commit 542885c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/wasm-bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "ifc-lite-wasm"
33
version.workspace = true
44
edition.workspace = true
55
authors.workspace = true
6-
license.workspace = true
6+
license = "MPL-2.0"
77
repository.workspace = true
88
description = "WebAssembly bindings for IFC-Lite"
99
keywords = ["ifc", "bim", "wasm", "webassembly", "aec"]

0 commit comments

Comments
 (0)