diff --git a/Cargo.toml b/Cargo.toml index 0825f500c..885a9dc61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index ef261d178..bf9b4de4c 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -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 diff --git a/lib/Cargo.toml b/lib/Cargo.toml index e45e45f88..d6f068aad 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -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 diff --git a/lib/gen-protos/Cargo.toml b/lib/gen-protos/Cargo.toml index 13f3043e6..ac6f4a368 100644 --- a/lib/gen-protos/Cargo.toml +++ b/lib/gen-protos/Cargo.toml @@ -9,3 +9,6 @@ license = { workspace = true } [dependencies] prost-build = { workspace = true } + +[lints] +workspace = true diff --git a/lib/proc-macros/Cargo.toml b/lib/proc-macros/Cargo.toml index e26bfa26b..8f2c00034 100644 --- a/lib/proc-macros/Cargo.toml +++ b/lib/proc-macros/Cargo.toml @@ -20,3 +20,6 @@ proc-macro = true proc-macro2 = { workspace = true } quote = { workspace = true } syn = { workspace = true } + +[lints] +workspace = true diff --git a/lib/testutils/Cargo.toml b/lib/testutils/Cargo.toml index 62b0ed866..8bc3309ef 100644 --- a/lib/testutils/Cargo.toml +++ b/lib/testutils/Cargo.toml @@ -25,3 +25,6 @@ jj-lib = { workspace = true, features = ["testing"] } pollster = { workspace = true } rand = { workspace = true } tempfile = { workspace = true } + +[lints] +workspace = true