rust: move all crates in the main workspace to edition 2021
We've changed our minimum Rust version to 1.61.0 in the previous patch,
and edition 2021 predates that version.
--- a/rust/hg-core/Cargo.toml Thu Oct 20 12:26:57 2022 +0200
+++ b/rust/hg-core/Cargo.toml Mon Nov 14 15:19:27 2022 +0100
@@ -3,7 +3,7 @@
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
-edition = "2018"
+edition = "2021"
[lib]
name = "hg"
--- a/rust/hg-cpython/Cargo.toml Thu Oct 20 12:26:57 2022 +0200
+++ b/rust/hg-cpython/Cargo.toml Mon Nov 14 15:19:27 2022 +0100
@@ -2,7 +2,7 @@
name = "hg-cpython"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
-edition = "2018"
+edition = "2021"
[lib]
name='rusthg'
--- a/rust/rhg/Cargo.toml Thu Oct 20 12:26:57 2022 +0200
+++ b/rust/rhg/Cargo.toml Mon Nov 14 15:19:27 2022 +0100
@@ -5,7 +5,7 @@
"Antoine Cezar <antoine.cezar@octobus.net>",
"Raphaël Gomès <raphael.gomes@octobus.net>",
]
-edition = "2018"
+edition = "2021"
[dependencies]
atty = "0.2.14"