rust: move all crates in the main workspace to edition 2021
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 14 Nov 2022 15:19:27 +0100
changeset 49748 1b6be761c23d
parent 49747 eb383f093a01
child 49749 c7fb9b74e753
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.
rust/hg-core/Cargo.toml
rust/hg-cpython/Cargo.toml
rust/rhg/Cargo.toml
--- 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"