Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 796f75c

Browse files
authored
Updating for wit-bindgen refactoring (#94)
* Updating for wit-bindgen refactoring * Use branches * Minor updates * New wit-bindgen revs * Back to main branches * Update some tests * Review comments * Remove component trampoline hack * More official fixmes * Remove `Cleanup` hack
1 parent 80a85e6 commit 796f75c

35 files changed

Lines changed: 459 additions & 1054 deletions

Cargo.lock

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

Cargo.toml

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,22 @@ system-interface = { version = "0.27.1", features = ["cap_std_impls"] }
300300
io-lifetimes = { version = "2.0.3", default-features = false }
301301
io-extras = "0.18.1"
302302
rustix = "0.38.43"
303-
# TODO: switch back to release:
304-
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "ec56282b", default-features = false }
305-
wit-bindgen-rt = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "ec56282b", default-features = false }
306-
wit-bindgen-rust-macro = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "ec56282b", default-features = false }
303+
wit-bindgen = { version = "0.41.0", default-features = false }
304+
wit-bindgen-rt = { version = "0.41.0", default-features = false }
305+
wit-bindgen-rust-macro = { version = "0.41.0", default-features = false }
307306

308307
# wasm-tools family:
309-
# TODO: switch back to release:
310-
wasmparser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041", default-features = false, features = ['simd'] }
311-
wat = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
312-
wast = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
313-
wasmprinter = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
314-
wasm-encoder = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
315-
wasm-smith = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
316-
wasm-mutate = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
317-
wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
318-
wit-component = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
319-
wasm-wave = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
320-
wasm-compose = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
308+
wasmparser = { version = "0.227.0", default-features = false, features = ['simd'] }
309+
wat = "1.227.0"
310+
wast = "227.0.0"
311+
wasmprinter = "0.227.0"
312+
wasm-encoder = "0.227.0"
313+
wasm-smith = "0.227.0"
314+
wasm-mutate = "0.227.0"
315+
wit-parser = "0.227.0"
316+
wit-component = "0.227.0"
317+
wasm-wave = "0.227.0"
318+
wasm-compose = "0.227.0"
321319

322320
# Non-Bytecode Alliance maintained dependencies:
323321
# --------------------------
@@ -572,17 +570,36 @@ inherits = "release"
572570
codegen-units = 1
573571
lto = true
574572

575-
# TODO: remove this once we've switched to a wasm-tools release:
573+
# TODO: remove this once we've switched to a wasm-tools/wit-bindgen release:
576574
[patch.crates-io]
577-
wasmparser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
578-
wat = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
579-
wast = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
580-
wasmprinter = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
581-
wasm-encoder = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
582-
wasm-smith = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
583-
wasm-mutate = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
584-
wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
585-
wit-component = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
586-
wasm-wave = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
587-
wasm-compose = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
588-
wasm-metadata = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "43556041" }
575+
wasmparser = { git = "https://github.com/bytecodealliance/wasm-tools" }
576+
wat = { git = "https://github.com/bytecodealliance/wasm-tools" }
577+
wast = { git = "https://github.com/bytecodealliance/wasm-tools" }
578+
wasmprinter = { git = "https://github.com/bytecodealliance/wasm-tools" }
579+
wasm-encoder = { git = "https://github.com/bytecodealliance/wasm-tools" }
580+
wasm-smith = { git = "https://github.com/bytecodealliance/wasm-tools" }
581+
wasm-mutate = { git = "https://github.com/bytecodealliance/wasm-tools" }
582+
wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools" }
583+
wit-component = { git = "https://github.com/bytecodealliance/wasm-tools" }
584+
wasm-wave = { git = "https://github.com/bytecodealliance/wasm-tools" }
585+
wasm-compose = { git = "https://github.com/bytecodealliance/wasm-tools" }
586+
wasm-metadata = { git = "https://github.com/bytecodealliance/wasm-tools" }
587+
wit-bindgen = { git = "https://github.com/bytecodealliance/witx-bindgen" }
588+
wit-bindgen-rt = { git = "https://github.com/bytecodealliance/witx-bindgen" }
589+
wit-bindgen-rust-macro = { git = "https://github.com/bytecodealliance/witx-bindgen" }
590+
591+
# wasmparser = { path = '../wasm-tools/crates/wasmparser' }
592+
# wat = { path = '../wasm-tools/crates/wat' }
593+
# wast = { path = '../wasm-tools/crates/wast' }
594+
# wasmprinter = { path = '../wasm-tools/crates/wasmprinter' }
595+
# wasm-encoder = { path = '../wasm-tools/crates/wasm-encoder' }
596+
# wasm-smith = { path = '../wasm-tools/crates/wasm-smith' }
597+
# wasm-mutate = { path = '../wasm-tools/crates/wasm-mutate' }
598+
# wit-parser = { path = '../wasm-tools/crates/wit-parser' }
599+
# wit-component = { path = '../wasm-tools/crates/wit-component' }
600+
# wasm-wave = { path = '../wasm-tools/crates/wasm-wave' }
601+
# wasm-compose = { path = '../wasm-tools/crates/wasm-compose' }
602+
# wasm-metadata = { path = '../wasm-tools/crates/wasm-metadata' }
603+
# wit-bindgen = { path = '../wit-bindgen/crates/guest-rust' }
604+
# wit-bindgen-rt = { path = '../wit-bindgen/crates/guest-rust/rt' }
605+
# wit-bindgen-rust-macro = { path = '../wit-bindgen/crates/guest-rust/macro' }

0 commit comments

Comments
 (0)