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.
This commit is contained in:
Colin Walters 2022-06-09 15:55:41 -04:00
parent a6ecd96cda
commit 99c122d219
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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]

View File

@ -2,7 +2,7 @@
name = "ostree-test"
version = "0.1.0"
authors = ["Colin Walters <walters@verbum.org>"]
edition = "2018"
edition = "2021"
[workspace]