rust: enable workspace lints
authorMitchell Kember <mkember@janestreet.com>
Fri, 21 Feb 2025 14:37:18 -0500
changeset 53003 1ef08a0381a0
parent 53002 3fae90405966
child 53004 c4392e8bfb9f
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.
rust/hg-core/Cargo.toml
rust/hg-cpython/Cargo.toml
rust/hg-pyo3/Cargo.toml
rust/pyo3-sharedref/Cargo.toml
rust/rhg/Cargo.toml
--- 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"