Skip to content

Commit 8c5c76f

Browse files
authored
Add a suffix to the metadata section for component types (#75)
This will help prevent clashes with any other world called "bindings" by ensuring that wasm-ld doesn't concatenate sections and corrupt the internal contents.
1 parent 304ea18 commit 8c5c76f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/regenerate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ex
44

5-
wit-bindgen rust wit --out-dir src --std-feature
5+
wit-bindgen rust wit --out-dir src --std-feature --type-section-suffix rust-wasi-from-crates-io
66

77
# rustfmt chokes on the raw output of wit-bindgen right now due to trailling
88
# whitespace (unsure as to why), so format it with some options first to get it

src/bindings.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)