Commit 542885c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments