From 99c122d219002a638624c7c580c946a5b0be904a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 9 Jun 2022 15:55:41 -0400 Subject: [PATCH] rust: Switch to 2021 edition No real changes. ``` $ cargo fix --edition note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. This may cause some dependencies to be built with fewer features enabled than previously. More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html When building the following dependencies, the given features will no longer be used: libc v0.2.126 removed features: extra_traits The following differences only apply when building with dev-dependencies: getrandom v0.2.6 removed features: std ``` which looks OK to me. --- Cargo.toml | 2 +- rust-bindings/sys/Cargo.toml | 2 +- tests/inst/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0489bc5f..68b3d2bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Felix Krull"] description = "Rust bindings for libostree" documentation = "https://docs.rs/ostree" -edition = "2018" +edition = "2021" keywords = ["ostree", "libostree"] license = "MIT" name = "ostree" diff --git a/rust-bindings/sys/Cargo.toml b/rust-bindings/sys/Cargo.toml index fd453454..5145ab87 100644 --- a/rust-bindings/sys/Cargo.toml +++ b/rust-bindings/sys/Cargo.toml @@ -73,7 +73,7 @@ links = "ostree-1" name = "ostree-sys" repository = "https://github.com/ostreedev/ostree-rs" version = "0.10.0" -edition = "2018" +edition = "2021" [package.metadata.docs.rs] features = ["dox"] [package.metadata.system-deps.ostree_1] diff --git a/tests/inst/Cargo.toml b/tests/inst/Cargo.toml index cf9c2dcc..cd3515b5 100644 --- a/tests/inst/Cargo.toml +++ b/tests/inst/Cargo.toml @@ -2,7 +2,7 @@ name = "ostree-test" version = "0.1.0" authors = ["Colin Walters "] -edition = "2018" +edition = "2021" [workspace]