Skip to content

Commit af24266

Browse files
authored
Merge pull request #298 from bytecodealliance/ydnar/wasm-tools-1.226.0
all: update wasm-tools to 1.226.0
2 parents ecfa620 + c30fda6 commit af24266

File tree

197 files changed

+3247
-3652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+3247
-3652
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
go-modules: ./... ./cm/...
17-
wasm-tools-version: "1.224.0"
17+
wasm-tools-version: "1.226.0"
1818
wasmtime-version: "26.0.0"
1919

2020
jobs:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1313
### Changed
1414

1515
- Breaking: generated `*.wasm.go` files will now have correct WIT kebab-case base name. Interfaces or worlds with `-` in their name will require removal of the previous `*.wasm.go` files.
16+
- Breaking: upgraded to `wasm-tools` [v1.226.0](https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.226.0), which [removes support](https://github.com/bytecodealliance/wasm-tools/pull/2050) for multiple return values and flags with > 32 values. To ease migration, this package will continue to support JSON generated by `wasm-tools` v1.225.0 and earlier.
1617
- Dropped support for TinyGo v0.32.0.
1718

1819
### Fixed

internal/wasmtools/Cargo.lock

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

internal/wasmtools/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = 'wasm-tools-go'
33
edition = '2021'
44

55
[dependencies]
6-
wasm-tools = { version = '1.224.0', default-features = false, features = [
6+
wasm-tools = { version = '1.226.0', default-features = false, features = [
77
'component',
88
] }
99

-500 Bytes
Binary file not shown.

testdata/codegen/allow-unused.wit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ world bindings {
66

77
interface component {
88
variant unused-variant {
9-
%string,
109
%enum(unused-enum),
1110
%record(unused-record)
1211
}

testdata/codegen/allow-unused.wit.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
"kind": {
6363
"variant": {
6464
"cases": [
65-
{
66-
"name": "string",
67-
"type": null
68-
},
6965
{
7066
"name": "enum",
7167
"type": 0

testdata/codegen/allow-unused.wit.json.golden.wit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ interface component {
44
enum unused-enum { unused }
55
record unused-record { x: u32 }
66
variant unused-variant {
7-
%string,
87
%enum(unused-enum),
98
%record(unused-record),
109
}

testdata/codegen/char.wit.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"type": "char"
3434
}
3535
],
36-
"results": [],
3736
"docs": {
3837
"contents": "A function that accepts a character"
3938
}
@@ -42,11 +41,7 @@
4241
"name": "return-char",
4342
"kind": "freestanding",
4443
"params": [],
45-
"results": [
46-
{
47-
"type": "char"
48-
}
49-
],
44+
"result": "char",
5045
"docs": {
5146
"contents": "A function that returns a character"
5247
}

testdata/codegen/conventions.wit.json

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"kebab-case": {
3030
"name": "kebab-case",
3131
"kind": "freestanding",
32-
"params": [],
33-
"results": []
32+
"params": []
3433
},
3534
"foo": {
3635
"name": "foo",
@@ -40,71 +39,60 @@
4039
"name": "x",
4140
"type": 0
4241
}
43-
],
44-
"results": []
42+
]
4543
},
4644
"function-with-dashes": {
4745
"name": "function-with-dashes",
4846
"kind": "freestanding",
49-
"params": [],
50-
"results": []
47+
"params": []
5148
},
5249
"function-with-no-weird-characters": {
5350
"name": "function-with-no-weird-characters",
5451
"kind": "freestanding",
55-
"params": [],
56-
"results": []
52+
"params": []
5753
},
5854
"apple": {
5955
"name": "apple",
6056
"kind": "freestanding",
61-
"params": [],
62-
"results": []
57+
"params": []
6358
},
6459
"apple-pear": {
6560
"name": "apple-pear",
6661
"kind": "freestanding",
67-
"params": [],
68-
"results": []
62+
"params": []
6963
},
7064
"apple-pear-grape": {
7165
"name": "apple-pear-grape",
7266
"kind": "freestanding",
73-
"params": [],
74-
"results": []
67+
"params": []
7568
},
7669
"a0": {
7770
"name": "a0",
7871
"kind": "freestanding",
79-
"params": [],
80-
"results": []
72+
"params": []
8173
},
8274
"is-XML": {
8375
"name": "is-XML",
8476
"kind": "freestanding",
8577
"params": [],
86-
"results": [],
8778
"docs": {
8879
"contents": " Comment out identifiers that collide when mapped to snake_case, for now; see\n https://github.com/WebAssembly/component-model/issues/118\nAPPLE: func()\nAPPLE-pear-GRAPE: func()\napple-PEAR-grape: func()"
8980
}
9081
},
9182
"explicit": {
9283
"name": "explicit",
9384
"kind": "freestanding",
94-
"params": [],
95-
"results": []
85+
"params": []
9686
},
9787
"explicit-kebab": {
9888
"name": "explicit-kebab",
9989
"kind": "freestanding",
100-
"params": [],
101-
"results": []
90+
"params": []
10291
},
10392
"bool": {
10493
"name": "bool",
10594
"kind": "freestanding",
10695
"params": [],
107-
"results": [],
10896
"docs": {
10997
"contents": "Identifiers with the same name as keywords are quoted."
11098
}

0 commit comments

Comments
 (0)