Skip to content

Commit

Permalink
Merge with upstream (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil authored May 29, 2024
2 parents 226d1c9 + 84c0463 commit 627263e
Show file tree
Hide file tree
Showing 142 changed files with 4,864 additions and 1,913 deletions.
106 changes: 53 additions & 53 deletions Cargo.lock

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

30 changes: 15 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-tools"
version = "1.208.1"
version = "1.209.0"
authors = ["The Wasmtime Project Developers"]
edition.workspace = true
description = "CLI tools for interoperating with WebAssembly files"
Expand Down Expand Up @@ -49,7 +49,7 @@ all = "allow"

[workspace.package]
edition = '2021'
version = "0.208.1"
version = "0.209.0"
# Current policy for wasm-tools is the same as Wasmtime which is that this
# number can be no larger than the current stable release of Rust minus 2.
rust-version = "1.76.0"
Expand Down Expand Up @@ -81,19 +81,19 @@ bitflags = "2.5.0"
hashbrown = { version = "0.14.3", default-features = false, features = ['ahash'] }
ahash = { version = "0.8.11", default-features = false }

wasm-compose = { version = "0.208.1", path = "crates/wasm-compose" }
wasm-encoder = { version = "0.208.1", path = "crates/wasm-encoder" }
wasm-metadata = { version = "0.208.1", path = "crates/wasm-metadata" }
wasm-mutate = { version = "0.208.1", path = "crates/wasm-mutate" }
wasm-shrink = { version = "0.208.1", path = "crates/wasm-shrink" }
wasm-smith = { version = "0.208.1", path = "crates/wasm-smith" }
wasmparser = { version = "0.208.1", path = "crates/wasmparser", default-features = false, features = ['std'] }
wasmprinter = { version = "0.208.1", path = "crates/wasmprinter" }
wast = { version = "208.0.1", path = "crates/wast" }
wat = { version = "1.208.1", path = "crates/wat" }
wit-component = { version = "0.208.1", path = "crates/wit-component" }
wit-parser = { version = "0.208.1", path = "crates/wit-parser" }
wit-smith = { version = "0.208.1", path = "crates/wit-smith" }
wasm-compose = { version = "0.209.0", path = "crates/wasm-compose" }
wasm-encoder = { version = "0.209.0", path = "crates/wasm-encoder" }
wasm-metadata = { version = "0.209.0", path = "crates/wasm-metadata" }
wasm-mutate = { version = "0.209.0", path = "crates/wasm-mutate" }
wasm-shrink = { version = "0.209.0", path = "crates/wasm-shrink" }
wasm-smith = { version = "0.209.0", path = "crates/wasm-smith" }
wasmparser = { version = "0.209.0", path = "crates/wasmparser", default-features = false, features = ['std'] }
wasmprinter = { version = "0.209.0", path = "crates/wasmprinter" }
wast = { version = "209.0.0", path = "crates/wast" }
wat = { version = "1.209.0", path = "crates/wat" }
wit-component = { version = "0.209.0", path = "crates/wit-component" }
wit-parser = { version = "0.209.0", path = "crates/wit-parser" }
wit-smith = { version = "0.209.0", path = "crates/wit-smith" }

[dependencies]
anyhow = { workspace = true }
Expand Down
6 changes: 4 additions & 2 deletions crates/wasmparser/src/validator/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,12 +923,14 @@ impl Module {
offset,
));
}
if page_size_log2 > 16 {
// Currently 2**0 and 2**16 are the only valid page sizes, but this
// may be relaxed to allow any power of two in the future.
if page_size_log2 != 0 && page_size_log2 != 16 {
return Err(BinaryReaderError::new("invalid custom page size", offset));
}
let page_size = 1_u64 << page_size_log2;
debug_assert!(page_size.is_power_of_two());
debug_assert!(page_size <= DEFAULT_WASM_PAGE_SIZE);
debug_assert!(page_size == DEFAULT_WASM_PAGE_SIZE || page_size == 1);
(page_size, page_size_log2)
} else {
let page_size_log2 = 16;
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmprinter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ impl Printer {
if ty.is_final {
self.result.push_str("final ");
}
for idx in &ty.supertype_idx {
if let Some(idx) = ty.supertype_idx {
self.print_idx(&state.core.type_names, idx.as_module_index().unwrap())?;
self.result.push(' ');
}
Expand Down
Loading

0 comments on commit 627263e

Please sign in to comment.