From 1d1ce039232a5384706fa983ac8c17ef8960792a Mon Sep 17 00:00:00 2001 From: Yadong Ding Date: Fri, 15 Dec 2023 09:47:17 +0800 Subject: [PATCH] rust: update to edition2021 Since we are using cargo 1.68.2 we don't need to require edition 2018 any more. Signed-off-by: Yadong Ding --- Cargo.toml | 2 +- api/Cargo.toml | 2 +- builder/Cargo.toml | 2 +- contrib/nydus-backend-proxy/Cargo.toml | 2 +- rafs/Cargo.toml | 2 +- service/Cargo.toml | 2 +- storage/Cargo.toml | 2 +- utils/Cargo.toml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ff730af57d6..2730beff5ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0 OR BSD-3-Clause" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" exclude = ["contrib/", "smoke/", "tests/"] -edition = "2018" +edition = "2021" resolver = "2" build = "build.rs" diff --git a/api/Cargo.toml b/api/Cargo.toml index 92fa7a9dc5c..93d711e47eb 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0 OR BSD-3-Clause" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" [dependencies] libc = "0.2" diff --git a/builder/Cargo.toml b/builder/Cargo.toml index 51639e41b9b..d2a563a19c7 100644 --- a/builder/Cargo.toml +++ b/builder/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" [dependencies] anyhow = "1.0.35" diff --git a/contrib/nydus-backend-proxy/Cargo.toml b/contrib/nydus-backend-proxy/Cargo.toml index 061f0a5f07b..986d7d7101e 100644 --- a/contrib/nydus-backend-proxy/Cargo.toml +++ b/contrib/nydus-backend-proxy/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Nydus Developers"] description = "A simple HTTP server to provide a fake container registry for nydusd" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" license = "Apache-2.0" [dependencies] diff --git a/rafs/Cargo.toml b/rafs/Cargo.toml index 2e3d9633a66..bc6564ddec2 100644 --- a/rafs/Cargo.toml +++ b/rafs/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0 OR BSD-3-Clause" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" [dependencies] anyhow = "1.0.35" diff --git a/service/Cargo.toml b/service/Cargo.toml index 3695655923f..4634751bf38 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" resolver = "2" [dependencies] diff --git a/storage/Cargo.toml b/storage/Cargo.toml index 84cfd50495f..d622d49300c 100644 --- a/storage/Cargo.toml +++ b/storage/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0 OR BSD-3-Clause" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" [dependencies] arc-swap = "1.5" diff --git a/utils/Cargo.toml b/utils/Cargo.toml index c3fa5fcad5f..cffb2b984f4 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -6,7 +6,7 @@ authors = ["The Nydus Developers"] license = "Apache-2.0 OR BSD-3-Clause" homepage = "https://nydus.dev/" repository = "https://github.com/dragonflyoss/image-service" -edition = "2018" +edition = "2021" [dependencies] thiserror = "1.0.30"