rust: enable workspace lints
This means that lints configured in rust/Cargo.toml will apply to all crates
within the workspace. Currently there are none but I plan to add some.
--- a/rust/hg-core/Cargo.toml Fri Feb 21 13:58:21 2025 -0500
+++ b/rust/hg-core/Cargo.toml Fri Feb 21 14:37:18 2025 -0500
@@ -5,6 +5,9 @@
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
edition = "2021"
+[lints]
+workspace = true
+
[lib]
name = "hg"
--- a/rust/hg-cpython/Cargo.toml Fri Feb 21 13:58:21 2025 -0500
+++ b/rust/hg-cpython/Cargo.toml Fri Feb 21 14:37:18 2025 -0500
@@ -4,6 +4,9 @@
authors = ["Georges Racinet <gracinet@anybox.fr>"]
edition = "2021"
+[lints]
+workspace = true
+
[lib]
name='rusthg'
crate-type = ["cdylib"]
--- a/rust/hg-pyo3/Cargo.toml Fri Feb 21 13:58:21 2025 -0500
+++ b/rust/hg-pyo3/Cargo.toml Fri Feb 21 14:37:18 2025 -0500
@@ -3,6 +3,9 @@
version = "0.1.0"
edition = "2021"
+[lints]
+workspace = true
+
[lib]
name='rusthgpyo3'
crate-type = ["cdylib"]
--- a/rust/pyo3-sharedref/Cargo.toml Fri Feb 21 13:58:21 2025 -0500
+++ b/rust/pyo3-sharedref/Cargo.toml Fri Feb 21 14:37:18 2025 -0500
@@ -3,6 +3,9 @@
version = "0.1.0"
edition = "2021"
+[lints]
+workspace = true
+
[lib]
name='pyo3_sharedref'
--- a/rust/rhg/Cargo.toml Fri Feb 21 13:58:21 2025 -0500
+++ b/rust/rhg/Cargo.toml Fri Feb 21 14:37:18 2025 -0500
@@ -7,6 +7,9 @@
]
edition = "2021"
+[lints]
+workspace = true
+
[dependencies]
hg-core = { path = "../hg-core"}
chrono = "0.4.23"