From 7491d935a0f4240411fec8957bff6fee923d2a73 Mon Sep 17 00:00:00 2001 From: SleepNoMore <95906578+nninkovicSQA@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:40:50 +0200 Subject: [PATCH] Update Cargo.toml files to use edition 2021 and workspace resolver 2 - Set workspace resolver to "2" in root Cargo.toml - Update all package Cargo.toml files to use edition "2021" --- .cargo/config | 3 --- Cargo.toml | 1 + sputnik-staking/Cargo.toml | 2 +- sputnikdao-factory2/Cargo.toml | 2 +- sputnikdao2/Cargo.toml | 2 +- test-token/Cargo.toml | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config deleted file mode 100644 index d45f64d4f..000000000 --- a/.cargo/config +++ /dev/null @@ -1,3 +0,0 @@ -[build] -rustflags = ["-C", "link-args=-s"] -# target = "wasm32-unknown-unknown" \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 2d56b0cfa..bf573e707 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] # include a member for each contract +resolver = "2" members = [ "sputnik-staking", "sputnikdao2", diff --git a/sputnik-staking/Cargo.toml b/sputnik-staking/Cargo.toml index 14d8c9137..a02d4484f 100644 --- a/sputnik-staking/Cargo.toml +++ b/sputnik-staking/Cargo.toml @@ -2,7 +2,7 @@ name = "sputnik-staking" version = "1.0.0" authors = ["Sputnik Devs "] -edition = "2018" +edition = "2021" publish = false [lib] diff --git a/sputnikdao-factory2/Cargo.toml b/sputnikdao-factory2/Cargo.toml index a8001aa07..66cd58fa4 100644 --- a/sputnikdao-factory2/Cargo.toml +++ b/sputnikdao-factory2/Cargo.toml @@ -2,7 +2,7 @@ name = "sputnikdao-factory2" version = "0.2.1" authors = ["Illia Polosukhin "] -edition = "2018" +edition = "2021" publish = false [lib] diff --git a/sputnikdao2/Cargo.toml b/sputnikdao2/Cargo.toml index 41a7a4f3b..8f569d804 100644 --- a/sputnikdao2/Cargo.toml +++ b/sputnikdao2/Cargo.toml @@ -2,7 +2,7 @@ name = "sputnikdao2" version = "2.3.1" authors = ["Sputnik Devs "] -edition = "2018" +edition = "2021" publish = false [lib] diff --git a/test-token/Cargo.toml b/test-token/Cargo.toml index 8ffa00e8e..9dd71a5b4 100644 --- a/test-token/Cargo.toml +++ b/test-token/Cargo.toml @@ -2,7 +2,7 @@ name = "test-token" version = "0.1.0" authors = ["Illia Polosukhin "] -edition = "2018" +edition = "2021" publish = false [lib]