Update to the new wasmparser and port to the new readers API.
The new wasmparser API provides dedicated reader types for each section type, which significantly simplifies the code. This also changes WasmError::from_binary_reader_error into a From trait so that we don't have to do .map_err(from_binary_reader_error) throughout the code.
This commit is contained in:
@@ -10,7 +10,7 @@ readme = "README.md"
|
||||
keywords = ["webassembly", "wasm"]
|
||||
|
||||
[dependencies]
|
||||
wasmparser = { version = "0.19.1", default-features = false }
|
||||
wasmparser = { version = "0.21.4", default-features = false }
|
||||
cranelift-codegen = { path = "../codegen", version = "0.22.0", default-features = false }
|
||||
cranelift-entity = { path = "../entity", version = "0.22.0", default-features = false }
|
||||
cranelift-frontend = { path = "../frontend", version = "0.22.0", default-features = false }
|
||||
|
||||
Reference in New Issue
Block a user