Skip to content

Commit

Permalink
Update wasm-tools crates (#2989)
Browse files Browse the repository at this point in the history
* Update wasm-tools crates

This brings in recent updates, notably including more improvements to
wasm-smith which will hopefully help exercise non-trapping wasm more.

* Fix some wat
  • Loading branch information
alexcrichton authored Jun 16, 2021
1 parent 53006ef commit 5140fd2
Show file tree
Hide file tree
Showing 23 changed files with 54 additions and 52 deletions.
42 changes: 21 additions & 21 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ anyhow = "1.0.19"
target-lexicon = { version = "0.12.0", default-features = false }
pretty_env_logger = "0.4.0"
file-per-thread-logger = "0.1.1"
wat = "1.0.37"
wat = "1.0.38"
libc = "0.2.60"
log = "0.4.8"
rayon = "1.5.0"
humantime = "2.0.0"
wasmparser = "0.78.1"
wasmparser = "0.79.0"
lazy_static = "1.4.0"

[dev-dependencies]
Expand All @@ -56,7 +56,7 @@ wasmtime-fuzzing = { path = "crates/fuzzing" }
wasmtime-runtime = { path = "crates/runtime" }
tokio = { version = "1.5.0", features = ["rt", "time", "macros", "rt-multi-thread"] }
tracing-subscriber = "0.2.16"
wast = "35.0.0"
wast = "36.0.0"
criterion = "0.3.4"
num_cpus = "1.13.0"

Expand Down
2 changes: 1 addition & 1 deletion cranelift/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ peepmatic-traits = { path = "../peepmatic/crates/traits", optional = true, versi
peepmatic-runtime = { path = "../peepmatic/crates/runtime", optional = true, version = "0.75.0" }
regalloc = { version = "0.0.31" }
souper-ir = { version = "2.1.0", optional = true }
wast = { version = "35.0.0", optional = true }
wast = { version = "36.0.0", optional = true }
# It is a goal of the cranelift-codegen crate to have minimal external dependencies.
# Please don't add any unless they are essential to the task of creating binary
# machine code. Integration tests that need external dependencies can be
Expand Down
2 changes: 1 addition & 1 deletion cranelift/peepmatic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ peepmatic-macro = { version = "0.75.0", path = "crates/macro" }
peepmatic-runtime = { version = "0.75.0", path = "crates/runtime", features = ["construct"] }
peepmatic-traits = { version = "0.75.0", path = "crates/traits" }
serde = { version = "1.0.105", features = ["derive"] }
wast = "35.0.0"
wast = "36.0.0"
z3 = { version = "0.7.1", features = ["static-link-z3"] }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion cranelift/peepmatic/crates/fuzzing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ peepmatic-test-operator = { path = "../test-operator" }
peepmatic-traits = { path = "../traits" }
rand = { version = "0.8.3", features = ["small_rng"] }
serde = "1.0.106"
wast = "35.0.0"
wast = "36.0.0"
2 changes: 1 addition & 1 deletion cranelift/peepmatic/crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ peepmatic-automata = { version = "0.75.0", path = "../automata", features = ["se
peepmatic-traits = { version = "0.75.0", path = "../traits" }
serde = { version = "1.0.105", features = ["derive"] }
thiserror = "1.0.15"
wast = { version = "35.0.0", optional = true }
wast = { version = "36.0.0", optional = true }

[dev-dependencies]
peepmatic-test-operator = { version = "0.75.0", path = "../test-operator" }
Expand Down
2 changes: 1 addition & 1 deletion cranelift/peepmatic/crates/souper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ log = "0.4.8"
[dev-dependencies]
peepmatic = { path = "../..", version = "0.75.0" }
peepmatic-test-operator = { version = "0.75.0", path = "../test-operator" }
wast = "35.0.0"
wast = "36.0.0"
2 changes: 1 addition & 1 deletion cranelift/peepmatic/crates/test-operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ edition = "2018"
[dependencies]
peepmatic-traits = { version = "0.75.0", path = "../traits" }
serde = { version = "1.0.105", features = ["derive"] }
wast = "35.0.0"
wast = "36.0.0"
2 changes: 1 addition & 1 deletion cranelift/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["webassembly", "wasm"]
edition = "2018"

[dependencies]
wasmparser = { version = "0.78", default-features = false }
wasmparser = { version = "0.79", default-features = false }
cranelift-codegen = { path = "../codegen", version = "0.75.0", default-features = false }
cranelift-entity = { path = "../entity", version = "0.75.0" }
cranelift-frontend = { path = "../frontend", version = "0.75.0", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion cranelift/wasm/src/code_translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
Operator::Try { .. }
| Operator::Catch { .. }
| Operator::Throw { .. }
| Operator::Unwind
| Operator::Rethrow { .. }
| Operator::Delegate { .. }
| Operator::CatchAll => {
Expand Down
2 changes: 1 addition & 1 deletion crates/cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ cranelift-wasm = { path = "../../cranelift/wasm", version = "0.75.0" }
cranelift-codegen = { path = "../../cranelift/codegen", version = "0.75.0" }
cranelift-frontend = { path = "../../cranelift/frontend", version = "0.75.0" }
cranelift-entity = { path = "../../cranelift/entity", version = "0.75.0" }
wasmparser = "0.78.0"
wasmparser = "0.79.0"
target-lexicon = "0.12"
2 changes: 1 addition & 1 deletion crates/debug/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"

[dependencies]
gimli = "0.24.0"
wasmparser = "0.78"
wasmparser = "0.79"
object = { version = "0.25.0", default-features = false, features = ["read_core", "elf", "write"] }
wasmtime-environ = { path = "../environ", version = "0.28.0" }
target-lexicon = { version = "0.12.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crates/environ/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2018"
cranelift-codegen = { path = "../../cranelift/codegen", version = "0.75.0", features = ["enable-serde"] }
cranelift-entity = { path = "../../cranelift/entity", version = "0.75.0", features = ["enable-serde"] }
cranelift-wasm = { path = "../../cranelift/wasm", version = "0.75.0", features = ["enable-serde"] }
wasmparser = "0.78"
wasmparser = "0.79"
indexmap = { version = "1.0.2", features = ["serde-1"] }
thiserror = "1.0.4"
serde = { version = "1.0.94", features = ["derive"] }
Expand Down
8 changes: 4 additions & 4 deletions crates/fuzzing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ arbitrary = { version = "1.0.0", features = ["derive"] }
env_logger = "0.8.1"
log = "0.4.8"
rayon = "1.2.1"
wasmparser = "0.78"
wasmprinter = "0.2.26"
wasmparser = "0.79"
wasmprinter = "0.2.27"
wasmtime = { path = "../wasmtime" }
wasmtime-wast = { path = "../wast" }
wasm-encoder = "0.4.1"
wasm-smith = "0.4.5"
wasm-encoder = "0.5.0"
wasm-smith = "0.5.0"
wasmi = "0.7.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/jit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rayon = { version = "1.0", optional = true }
region = "2.2.0"
thiserror = "1.0.4"
target-lexicon = { version = "0.12.0", default-features = false }
wasmparser = "0.78"
wasmparser = "0.79"
more-asserts = "0.2.1"
anyhow = "1.0"
cfg-if = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/lightbeam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ more-asserts = "0.2.1"
smallvec = "1.6.1"
thiserror = "1.0.9"
typemap = "0.3"
wasmparser = "0.78"
wasmparser = "0.79"

[dev-dependencies]
lazy_static = "1.2"
Expand Down
2 changes: 1 addition & 1 deletion crates/lightbeam/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ edition = "2018"

[dependencies]
lightbeam = { path = "..", version = "0.28.0" }
wasmparser = "0.78"
wasmparser = "0.79"
cranelift-codegen = { path = "../../../cranelift/codegen", version = "0.75.0" }
wasmtime-environ = { path = "../../environ", version = "0.28.0" }
2 changes: 1 addition & 1 deletion crates/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ wasmtime-cache = { path = "../cache", version = "0.28.0", optional = true }
wasmtime-profiling = { path = "../profiling", version = "0.28.0" }
wasmtime-fiber = { path = "../fiber", version = "0.28.0", optional = true }
target-lexicon = { version = "0.12.0", default-features = false }
wasmparser = "0.78"
wasmparser = "0.79"
anyhow = "1.0.19"
region = "2.2.0"
libc = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion crates/wast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0.19"
wasmtime = { path = "../wasmtime", version = "0.28.0", default-features = false }
wast = "35.0.2"
wast = "36.0.0"

[badges]
maintenance = { status = "actively-developed" }
7 changes: 4 additions & 3 deletions crates/wiggle/tests/wasmtime_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ fn shim_module(engine: &Engine) -> Module {
engine,
r#"
(module
(memory 1)
(export "memory" (memory 0))
(import "atoms" "int_float_args" (func $int_float_args (param i32 f32) (result i32)))
(import "atoms" "double_int_return_float" (func $double_int_return_float (param i32 i32) (result i32)))
(memory 1)
(export "memory" (memory 0))
(func $int_float_args_shim (param i32 f32) (result i32)
local.get 0
local.get 1
Expand All @@ -154,7 +155,7 @@ fn shim_module(engine: &Engine) -> Module {
(export "int_float_args_shim" (func $int_float_args_shim))
(export "double_int_return_float_shim" (func $double_int_return_float_shim))
)
"#,
"#,
)
.unwrap()
}
5 changes: 3 additions & 2 deletions crates/wiggle/tests/wasmtime_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ fn shim_module(engine: &Engine) -> Module {
engine,
r#"
(module
(memory 1)
(export "memory" (memory 0))
(import "atoms" "int_float_args" (func $int_float_args (param i32 f32) (result i32)))
(import "atoms" "double_int_return_float" (func $double_int_return_float (param i32 i32) (result i32)))
(memory 1)
(export "memory" (memory 0))
(func $int_float_args_shim (param i32 f32) (result i32)
local.get 0
local.get 1
Expand Down
5 changes: 3 additions & 2 deletions crates/wiggle/tests/wasmtime_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ fn shim_module(engine: &Engine) -> Module {
engine,
r#"
(module
(memory 1)
(export "memory" (memory 0))
(import "atoms" "int_float_args" (func $int_float_args (param i32 f32) (result i32)))
(import "atoms" "double_int_return_float" (func $double_int_return_float (param i32 i32) (result i32)))
(memory 1)
(export "memory" (memory 0))
(func $int_float_args_shim (param i32 f32) (result i32)
local.get 0
local.get 1
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target-lexicon = "0.12"
peepmatic-fuzzing = { path = "../cranelift/peepmatic/crates/fuzzing", optional = true }
wasmtime = { path = "../crates/wasmtime" }
wasmtime-fuzzing = { path = "../crates/fuzzing" }
wasm-smith = "0.4.0"
wasm-smith = "0.5.0"

[features]
# Leave a stub feature with no side-effects in place for now: the OSS-Fuzz
Expand Down

0 comments on commit 5140fd2

Please sign in to comment.