summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2024-01-04 14:44:47 +0100
committerLinus Färnstrand <linus@mullvad.net>2024-01-04 18:06:21 +0100
commitb3c7168e673eaeff30fca3553e0070fe9e9d86e2 (patch)
tree8aed6d0abd12fe7300ebd5073807957b88ef10c8
parent1f981f6bf965390a2f6c6c642f5cab89e097fc45 (diff)
downloadmullvadvpn-b3c7168e673eaeff30fca3553e0070fe9e9d86e2.tar.xz
mullvadvpn-b3c7168e673eaeff30fca3553e0070fe9e9d86e2.zip
Add workspace level linting to test workspace
-rw-r--r--test/Cargo.toml6
-rw-r--r--test/test-manager/Cargo.toml3
-rw-r--r--test/test-rpc/Cargo.toml3
-rw-r--r--test/test-runner/Cargo.toml3
4 files changed, 15 insertions, 0 deletions
diff --git a/test/Cargo.toml b/test/Cargo.toml
index 6eac149434..3f8e2d056e 100644
--- a/test/Cargo.toml
+++ b/test/Cargo.toml
@@ -6,6 +6,12 @@ members = [
"test-rpc",
]
+[workspace.lints.rust]
+rust_2018_idioms = "deny"
+
+[workspace.lints.clippy]
+unused_async = "deny"
+
[patch.crates-io]
serialport = { git = "https://github.com/mullvad/serialport-rs", rev = "1401c9d39e4a89685e3506a7160869b2c8e9ceb0" }
diff --git a/test/test-manager/Cargo.toml b/test/test-manager/Cargo.toml
index 9e319bdf33..5f583e8f4f 100644
--- a/test/test-manager/Cargo.toml
+++ b/test/test-manager/Cargo.toml
@@ -3,6 +3,9 @@ name = "test-manager"
version = "0.1.0"
edition = "2021"
+[lints]
+workspace = true
+
[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
futures = { workspace = true }
diff --git a/test/test-rpc/Cargo.toml b/test/test-rpc/Cargo.toml
index 2814088bf7..9599585942 100644
--- a/test/test-rpc/Cargo.toml
+++ b/test/test-rpc/Cargo.toml
@@ -4,6 +4,9 @@ version = "0.1.0"
edition = "2021"
description = "Supports IPC between test-runner and test-manager"
+[lints]
+workspace = true
+
[dependencies]
futures = { workspace = true }
tokio = { workspace = true }
diff --git a/test/test-runner/Cargo.toml b/test/test-runner/Cargo.toml
index 64461d76aa..6f95d2b34b 100644
--- a/test/test-runner/Cargo.toml
+++ b/test/test-runner/Cargo.toml
@@ -3,6 +3,9 @@ name = "test-runner"
version = "0.1.0"
edition = "2021"
+[lints]
+workspace = true
+
[dependencies]
futures = { workspace = true }
tarpc = { workspace = true }