Skip to content

Commit 46f4514

Browse files
authored
Bump wasm-tools deps (#990)
* Bump wasm-tools deps * Disable test with 64 flags * Fix macos/go
1 parent ecba1ec commit 46f4514

File tree

11 files changed

+62
-100
lines changed

11 files changed

+62
-100
lines changed

Cargo.lock

Lines changed: 33 additions & 33 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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ indexmap = "2.0.0"
3030
prettyplease = "0.2.20"
3131
syn = { version = "2.0", features = ["printing"] }
3232

33-
wasmparser = "0.211.0"
34-
wasm-encoder = "0.211.0"
35-
wasm-metadata = "0.211.0"
36-
wit-parser = "0.211.0"
37-
wit-component = "0.211.0"
33+
wasmparser = "0.212.0"
34+
wasm-encoder = "0.212.0"
35+
wasm-metadata = "0.212.0"
36+
wit-parser = "0.212.0"
37+
wit-component = "0.212.0"
3838

3939
wit-bindgen-core = { path = 'crates/core', version = '0.26.0' }
4040
wit-bindgen-c = { path = 'crates/c', version = '0.26.0' }

tests/codegen/flags.wit

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ interface %flags {
2929
b24, b25, b26, b27, b28, b29, b30, b31,
3030
}
3131

32-
flags flag64 {
33-
b0, b1, b2, b3, b4, b5, b6, b7,
34-
b8, b9, b10, b11, b12, b13, b14, b15,
35-
b16, b17, b18, b19, b20, b21, b22, b23,
36-
b24, b25, b26, b27, b28, b29, b30, b31,
37-
b32, b33, b34, b35, b36, b37, b38, b39,
38-
b40, b41, b42, b43, b44, b45, b46, b47,
39-
b48, b49, b50, b51, b52, b53, b54, b55,
40-
b56, b57, b58, b59, b60, b61, b62, b63,
41-
}
42-
4332
flags withdashes {
4433
with-dashes,
4534
}
@@ -50,7 +39,6 @@ interface %flags {
5039
roundtrip-flag8: func(x: flag8) -> flag8;
5140
roundtrip-flag16: func(x: flag16) -> flag16;
5241
roundtrip-flag32: func(x: flag32) -> flag32;
53-
roundtrip-flag64: func(x: flag64) -> flag64;
5442
}
5543

5644
world the-flags {

tests/runtime/records.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ impl test_imports::Host for MyImports {
3232
a: test_imports::Flag8,
3333
b: test_imports::Flag16,
3434
c: test_imports::Flag32,
35-
d: test_imports::Flag64,
3635
) -> (
3736
test_imports::Flag8,
3837
test_imports::Flag16,
3938
test_imports::Flag32,
40-
test_imports::Flag64,
4139
) {
42-
(a, b, c, d)
40+
(a, b, c)
4341
}
4442

4543
fn roundtrip_record1(&mut self, a: test_imports::R1) -> test_imports::R1 {

tests/runtime/records/wasm.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ void records_test_imports() {
3131
test_records_test_flag8_t flag8;
3232
test_records_test_flag16_t flag16;
3333
test_records_test_flag32_t flag32;
34-
test_records_test_flag64_t flag64;
35-
test_records_test_roundtrip_flags3(TEST_RECORDS_TEST_FLAG8_B0, TEST_RECORDS_TEST_FLAG16_B1, TEST_RECORDS_TEST_FLAG32_B2, TEST_RECORDS_TEST_FLAG64_B3,
36-
&flag8, &flag16, &flag32, &flag64);
34+
test_records_test_roundtrip_flags3(TEST_RECORDS_TEST_FLAG8_B0, TEST_RECORDS_TEST_FLAG16_B1, TEST_RECORDS_TEST_FLAG32_B2,
35+
&flag8, &flag16, &flag32);
3736
assert(flag8 == TEST_RECORDS_TEST_FLAG8_B0);
3837
assert(flag16 == TEST_RECORDS_TEST_FLAG16_B1);
3938
assert(flag32 == TEST_RECORDS_TEST_FLAG32_B2);
40-
assert(flag64 == TEST_RECORDS_TEST_FLAG64_B3);
4139

4240
{
4341
test_records_test_r1_t a, b;
@@ -85,15 +83,12 @@ void exports_test_records_test_roundtrip_flags3(
8583
exports_test_records_test_flag8_t a,
8684
exports_test_records_test_flag16_t b,
8785
exports_test_records_test_flag32_t c,
88-
exports_test_records_test_flag64_t d,
8986
exports_test_records_test_flag8_t *ret0,
9087
exports_test_records_test_flag16_t *ret1,
91-
exports_test_records_test_flag32_t *ret2,
92-
exports_test_records_test_flag64_t *ret3) {
88+
exports_test_records_test_flag32_t *ret2) {
9389
*ret0 = a;
9490
*ret1 = b;
9591
*ret2 = c;
96-
*ret3 = d;
9792
}
9893

9994
void exports_test_records_test_roundtrip_record1(exports_test_records_test_r1_t *a, exports_test_records_test_r1_t *ret0) {

tests/runtime/records/wasm.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ public static void TestImports()
3030

3131
{
3232
var result = TestInterop.RoundtripFlags3(ITest.Flag8.B0, ITest.Flag16.B1,
33-
ITest.Flag32.B2, ITest.Flag64.B3);
33+
ITest.Flag32.B2);
3434
Debug.Assert(result.Item1 == ITest.Flag8.B0);
3535
Debug.Assert(result.Item2 == ITest.Flag16.B1);
3636
Debug.Assert(result.Item3 == ITest.Flag32.B2);
37-
Debug.Assert(result.Item4 == ITest.Flag64.B3);
3837
}
3938

4039
{
@@ -89,14 +88,12 @@ public static ITest.F2 RoundtripFlags2(
8988

9089
public static (ITest.Flag8,
9190
ITest.Flag16,
92-
ITest.Flag32,
93-
ITest.Flag64) RoundtripFlags3(
91+
ITest.Flag32) RoundtripFlags3(
9492
ITest.Flag8 a,
9593
ITest.Flag16 b,
96-
ITest.Flag32 c,
97-
ITest.Flag64 d)
94+
ITest.Flag32 c)
9895
{
99-
return (a, b, c, d);
96+
return (a, b, c);
10097
}
10198

10299
public static ITest.R1 RoundtripRecord1(

tests/runtime/records/wasm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (r *RecordImpl) TestImports() {
4343
panic("TestRecordsTestRoundtripFlags2")
4444
}
4545

46-
if a, b, c, d := TestRecordsTestRoundtripFlags3(TestRecordsTestFlag8_B0, TestRecordsTestFlag16_B1, TestRecordsTestFlag32_B2, TestRecordsTestFlag64_B3); a != TestRecordsTestFlag8_B0 && b != TestRecordsTestFlag16_B1 && c != TestRecordsTestFlag32_B2 && d != TestRecordsTestFlag64_B3 {
46+
if a, b, c := TestRecordsTestRoundtripFlags3(TestRecordsTestFlag8_B0, TestRecordsTestFlag16_B1, TestRecordsTestFlag32_B2); a != TestRecordsTestFlag8_B0 && b != TestRecordsTestFlag16_B1 && c != TestRecordsTestFlag32_B2 {
4747
panic("TestRecordsTestRoundtripFlags3")
4848
}
4949

@@ -78,8 +78,8 @@ func (r *RecordImpl) RoundtripFlags2(a ExportsTestRecordsTestF2) ExportsTestReco
7878
return a
7979
}
8080

81-
func (r *RecordImpl) RoundtripFlags3(a ExportsTestRecordsTestFlag8, b ExportsTestRecordsTestFlag16, c ExportsTestRecordsTestFlag32, d ExportsTestRecordsTestFlag64) (ExportsTestRecordsTestFlag8, ExportsTestRecordsTestFlag16, ExportsTestRecordsTestFlag32, ExportsTestRecordsTestFlag64) {
82-
return a, b, c, d
81+
func (r *RecordImpl) RoundtripFlags3(a ExportsTestRecordsTestFlag8, b ExportsTestRecordsTestFlag16, c ExportsTestRecordsTestFlag32) (ExportsTestRecordsTestFlag8, ExportsTestRecordsTestFlag16, ExportsTestRecordsTestFlag32) {
82+
return a, b, c
8383
}
8484

8585
func (r *RecordImpl) RoundtripRecord1(a ExportsTestRecordsTestR1) ExportsTestRecordsTestR1 {

tests/runtime/records/wasm.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ impl Guest for Component {
2626
assert_eq!(roundtrip_flags2(F2::C | F2::E), F2::C | F2::E);
2727

2828
assert_eq!(
29-
roundtrip_flags3(Flag8::B0, Flag16::B1, Flag32::B2, Flag64::B3),
30-
(Flag8::B0, Flag16::B1, Flag32::B2, Flag64::B3)
29+
roundtrip_flags3(Flag8::B0, Flag16::B1, Flag32::B2),
30+
(Flag8::B0, Flag16::B1, Flag32::B2)
3131
);
3232

3333
let r = roundtrip_record1(R1 {
@@ -65,13 +65,8 @@ impl exports::test::records::test::Guest for Component {
6565
a
6666
}
6767

68-
fn roundtrip_flags3(
69-
a: Flag8,
70-
b: Flag16,
71-
c: Flag32,
72-
d: Flag64,
73-
) -> (Flag8, Flag16, Flag32, Flag64) {
74-
(a, b, c, d)
68+
fn roundtrip_flags3(a: Flag8, b: Flag16, c: Flag32) -> (Flag8, Flag16, Flag32) {
69+
(a, b, c)
7570
}
7671

7772
fn roundtrip_record1(a: R1) -> R1 {

tests/runtime/records/wit_exports_test_records_TestImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import wit.worlds.Records.Tuple1;
44
import wit.worlds.Records.Tuple2;
5-
import wit.worlds.Records.Tuple4;
5+
import wit.worlds.Records.Tuple3;
66

77
public class TestImpl {
88
public static Tuple2<Byte, Short> multipleResults() {
@@ -21,10 +21,10 @@ public static Test.F2 roundtripFlags2(Test.F2 a) {
2121
return a;
2222
}
2323

24-
public static Tuple4<Test.Flag8, Test.Flag16, Test.Flag32, Test.Flag64> roundtripFlags3
25-
(Test.Flag8 a, Test.Flag16 b, Test.Flag32 c, Test.Flag64 d)
24+
public static Tuple3<Test.Flag8, Test.Flag16, Test.Flag32> roundtripFlags3
25+
(Test.Flag8 a, Test.Flag16 b, Test.Flag32 c)
2626
{
27-
return new Tuple4<>(a, b, c, d);
27+
return new Tuple3<>(a, b, c);
2828
}
2929

3030
public static Test.R1 roundtripRecord1(Test.R1 a) {

0 commit comments

Comments
 (0)