# HG changeset patch
# User Mitchell Kember <mkember@janestreet.com>
# Date 1740166638 18000
#      Fri Feb 21 14:37:18 2025 -0500
# Node ID 1ef08a0381a0522d787bbe82e875dc01c549ea56
# Parent  3fae904059667a19b984e3eaed6006b2c871732d
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.

diff --git a/rust/hg-core/Cargo.toml b/rust/hg-core/Cargo.toml
--- a/rust/hg-core/Cargo.toml
+++ b/rust/hg-core/Cargo.toml
@@ -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"
 
diff --git a/rust/hg-cpython/Cargo.toml b/rust/hg-cpython/Cargo.toml
--- a/rust/hg-cpython/Cargo.toml
+++ b/rust/hg-cpython/Cargo.toml
@@ -4,6 +4,9 @@
 authors = ["Georges Racinet <gracinet@anybox.fr>"]
 edition = "2021"
 
+[lints]
+workspace = true
+
 [lib]
 name='rusthg'
 crate-type = ["cdylib"]
diff --git a/rust/hg-pyo3/Cargo.toml b/rust/hg-pyo3/Cargo.toml
--- a/rust/hg-pyo3/Cargo.toml
+++ b/rust/hg-pyo3/Cargo.toml
@@ -3,6 +3,9 @@
 version = "0.1.0"
 edition = "2021"
 
+[lints]
+workspace = true
+
 [lib]
 name='rusthgpyo3'
 crate-type = ["cdylib"]
diff --git a/rust/pyo3-sharedref/Cargo.toml b/rust/pyo3-sharedref/Cargo.toml
--- a/rust/pyo3-sharedref/Cargo.toml
+++ b/rust/pyo3-sharedref/Cargo.toml
@@ -3,6 +3,9 @@
 version = "0.1.0"
 edition = "2021"
 
+[lints]
+workspace = true
+
 [lib]
 name='pyo3_sharedref'
 
diff --git a/rust/rhg/Cargo.toml b/rust/rhg/Cargo.toml
--- a/rust/rhg/Cargo.toml
+++ b/rust/rhg/Cargo.toml
@@ -7,6 +7,9 @@
 ]
 edition = "2021"
 
+[lints]
+workspace = true
+
 [dependencies]
 hg-core = { path = "../hg-core"}
 chrono = "0.4.23"