Skip to content

Commit

Permalink
Add a suffix to the metadata section for component types (#75)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton authored Feb 23, 2024
1 parent 304ea18 commit 8c5c76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

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

# rustfmt chokes on the raw output of wit-bindgen right now due to trailling
# whitespace (unsure as to why), so format it with some options first to get it
Expand Down
2 changes: 1 addition & 1 deletion src/bindings.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c5c76f

Please sign in to comment.