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" } jj-lib-proc-macros = { path = "lib/proc-macros", version = "0.22.0" }
testutils = { path = "lib/testutils" } testutils = { path = "lib/testutils" }
[workspace.lints.clippy]
# Insta suggests compiling these packages in opt mode for faster testing. # Insta suggests compiling these packages in opt mode for faster testing.
# See https://docs.rs/insta/latest/insta/#optional-faster-runs. # See https://docs.rs/insta/latest/insta/#optional-faster-runs.
[profile.dev.package] [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 # The archive name is jj, not jj-cli. Also, `cargo binstall` gets
# confused by the `v` before versions in archive name. # confused by the `v` before versions in archive name.
pkg-url = "{ repo }/releases/download/v{ version }/jj-v{ version }-{ target }.{ archive-format }" 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"] vendored-openssl = ["git2/vendored-openssl"]
watchman = ["dep:tokio", "dep:watchman_client"] watchman = ["dep:tokio", "dep:watchman_client"]
testing = ["git"] testing = ["git"]
[lints]
workspace = true

View File

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

View File

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

View File

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