From 45afcb067ecfc1512e9f5fe2d022d1cf5ccb19c1 Mon Sep 17 00:00:00 2001 From: Dan Shields <35669742+NukeManDan@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:58:47 -0700 Subject: [PATCH 1/3] move to rust 2021 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f2c71e27e..0d85702b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ description = "WebAssembly low-level format library" keywords = ["wasm", "webassembly", "bytecode", "serde", "interpreter"] categories = ["wasm", "parser-implementations"] include = ["src/**/*", "LICENSE-*", "README.md"] -edition = "2018" +edition = "2021" [workspace] members = ["testsuite"] From d8320b966ea9fefd32f0355c1bbc9c16360b1252 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Sat, 13 Nov 2021 19:03:53 -0800 Subject: [PATCH 2/3] Remove redundant import --- src/elements/types.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/elements/types.rs b/src/elements/types.rs index 5bcd70a51..e7f680ff1 100644 --- a/src/elements/types.rs +++ b/src/elements/types.rs @@ -123,7 +123,6 @@ impl Deserialize for BlockType { -0x05 => Ok(BlockType::Value(ValueType::V128)), #[cfg(feature = "multi_value")] idx => { - use core::convert::TryInto; let idx = idx.try_into().map_err(|_| Error::UnknownBlockType(idx))?; Ok(BlockType::TypeIndex(idx)) }, From 21c3d955be6c761f7a203b3d3ed18f512faf9bc1 Mon Sep 17 00:00:00 2001 From: Dan Shields Date: Sat, 20 Nov 2021 23:43:18 -0700 Subject: [PATCH 3/3] Version 0.45.0 edition = "2021" rust-version = "1.56.1" --- Cargo.toml | 3 ++- fuzz/Cargo.toml | 2 ++ testsuite/Cargo.toml | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0d85702b4..3506f0f99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "parity-wasm" -version = "0.44.0" +version = "0.45.0" authors = ["Nikolay Volf ", "Svyatoslav Nikolsky ", "Sergey Shulepov "] license = "MIT/Apache-2.0" readme = "README.md" @@ -12,6 +12,7 @@ keywords = ["wasm", "webassembly", "bytecode", "serde", "interpreter"] categories = ["wasm", "parser-implementations"] include = ["src/**/*", "LICENSE-*", "README.md"] edition = "2021" +rust-version = "1.56.1" [workspace] members = ["testsuite"] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index b44199cf3..23c5e299d 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -4,6 +4,8 @@ name = "parity-wasm-fuzz" version = "0.0.1" authors = ["Pat Hickey phickey@fastly.com"] publish = false +edition = "2021" +rust-version = "1.56.1" [package.metadata] cargo-fuzz = true diff --git a/testsuite/Cargo.toml b/testsuite/Cargo.toml index d79ec30b7..fa09ac6b6 100644 --- a/testsuite/Cargo.toml +++ b/testsuite/Cargo.toml @@ -8,7 +8,8 @@ readme = "README.md" repository = "https://github.com/nikvolf/parity-wasm" homepage = "https://github.com/nikvolf/parity-wasm" description = "parity-wasm testsuite" -edition = "2018" +edition = "2021" +rust-version = "1.56.1" [dependencies] wast = "38"