From da3f60ba37372f162b8e4888c645806779efc1b8 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 14 May 2026 12:10:34 +0300 Subject: [PATCH] build: update rust edition 2021 --- Cargo.lock | 1 - Cargo.toml | 2 +- api/Cargo.toml | 2 +- config/Cargo.toml | 2 +- controller/Cargo.toml | 2 +- impls/Cargo.toml | 2 +- integration/Cargo.toml | 2 +- libwallet/Cargo.toml | 2 +- rustfmt.toml | 2 +- util/Cargo.toml | 2 +- 10 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 21de04b..a4dc53d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1485,7 +1485,6 @@ dependencies = [ "grin_core", "grin_util", "grin_wallet_util", - "log", "pretty_assertions", "rand 0.6.5", "serde", diff --git a/Cargo.toml b/Cargo.toml index ce75779..e90314a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ keywords = [ "crypto", "grin", "mimblewimble" ] readme = "README.md" exclude = ["**/*.grin", "**/*.grin2"] build = "src/build/build.rs" -edition = "2018" +edition = "2021" [[bin]] name = "grin-wallet" diff --git a/api/Cargo.toml b/api/Cargo.toml index 9beb252..a85781e 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] exclude = ["**/*.grin", "**/*.grin2"] -edition = "2018" +edition = "2021" [dependencies] log = "0.4" diff --git a/config/Cargo.toml b/config/Cargo.toml index d1c325b..f646b3d 100644 --- a/config/Cargo.toml +++ b/config/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] workspace = ".." -edition = "2018" +edition = "2021" [dependencies] rand = "0.6" diff --git a/controller/Cargo.toml b/controller/Cargo.toml index 070088e..6a3a5ca 100644 --- a/controller/Cargo.toml +++ b/controller/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] exclude = ["**/*.grin", "**/*.grin2"] #build = "src/build/build.rs" -edition = "2018" +edition = "2021" [dependencies] futures = "0.3" diff --git a/impls/Cargo.toml b/impls/Cargo.toml index 70f7f69..6dfc918 100644 --- a/impls/Cargo.toml +++ b/impls/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] exclude = ["**/*.grin", "**/*.grin2"] -edition = "2018" +edition = "2021" [dependencies] blake2-rfc = "0.2" diff --git a/integration/Cargo.toml b/integration/Cargo.toml index a624573..1230be2 100644 --- a/integration/Cargo.toml +++ b/integration/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" repository = "https://github.com/mimblewimble/grin" keywords = [ "crypto", "grin", "mimblewimble" ] workspace = ".." -edition = "2018" +edition = "2021" [dependencies] hyper = "0.12" diff --git a/libwallet/Cargo.toml b/libwallet/Cargo.toml index 8fd614d..e826004 100644 --- a/libwallet/Cargo.toml +++ b/libwallet/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] exclude = ["**/*.grin", "**/*.grin2"] #build = "src/build/build.rs" -edition = "2018" +edition = "2021" [dependencies] blake2-rfc = "0.2" diff --git a/rustfmt.toml b/rustfmt.toml index b2b2431..c691d12 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,2 +1,2 @@ hard_tabs = true -edition = "2018" +edition = "2021" diff --git a/util/Cargo.toml b/util/Cargo.toml index 5242e12..ef22dde 100644 --- a/util/Cargo.toml +++ b/util/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" repository = "https://github.com/mimblewimble/grin-wallet" keywords = [ "crypto", "grin", "mimblewimble" ] workspace = ".." -edition = "2018" +edition = "2021" [dependencies] rand = "0.6"