cargo: inherit lints configuration from workspace

This commit is contained in:
Samuel Tardieu 2024-10-02 22:11:37 +02:00
parent 794db9dae0
commit 3f0703ca2c
6 changed files with 17 additions and 0 deletions

View file

@ -132,6 +132,8 @@ jj-lib = { path = "lib", version = "0.22.0" }
jj-lib-proc-macros = { path = "lib/proc-macros", version = "0.22.0" }
testutils = { path = "lib/testutils" }
[workspace.lints.clippy]
# Insta suggests compiling these packages in opt mode for faster testing.
# See https://docs.rs/insta/latest/insta/#optional-faster-runs.
[profile.dev.package]

View file

@ -117,3 +117,6 @@ watchman = ["jj-lib/watchman"]
# The archive name is jj, not jj-cli. Also, `cargo binstall` gets
# confused by the `v` before versions in archive name.
pkg-url = "{ repo }/releases/download/v{ version }/jj-v{ version }-{ target }.{ archive-format }"
[lints]
workspace = true

View file

@ -100,3 +100,6 @@ git = ["dep:git2", "dep:gix", "dep:gix-filter"]
vendored-openssl = ["git2/vendored-openssl"]
watchman = ["dep:tokio", "dep:watchman_client"]
testing = ["git"]
[lints]
workspace = true

View file

@ -9,3 +9,6 @@ license = { workspace = true }
[dependencies]
prost-build = { workspace = true }
[lints]
workspace = true

View file

@ -20,3 +20,6 @@ proc-macro = true
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true }
[lints]
workspace = true

View file

@ -25,3 +25,6 @@ jj-lib = { workspace = true, features = ["testing"] }
pollster = { workspace = true }
rand = { workspace = true }
tempfile = { workspace = true }
[lints]
workspace = true