Mercurial > public > mercurial-scm > hg-stable
changeset 53005:1ef08a0381a0
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.
author | Mitchell Kember <mkember@janestreet.com> |
---|---|
date | Fri, 21 Feb 2025 14:37:18 -0500 |
parents | 3fae90405966 |
children | c4392e8bfb9f |
files | rust/hg-core/Cargo.toml rust/hg-cpython/Cargo.toml rust/hg-pyo3/Cargo.toml rust/pyo3-sharedref/Cargo.toml rust/rhg/Cargo.toml |
diffstat | 5 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"]