diff --git a/crates/dapf/src/http_client.rs b/crates/dapf/src/http_client.rs
index 8d3a9729..71c178cf 100644
--- a/crates/dapf/src/http_client.rs
+++ b/crates/dapf/src/http_client.rs
@@ -13,7 +13,7 @@ pub struct HttpClient {
inner: HttpClientInner,
}
-#[allow(clippy::large_enum_variant)]
+#[expect(clippy::large_enum_variant)]
enum HttpClientInner {
/// Never reuse the same reqwest client for two different http requests. Usefull for specific
/// debugging or load testing scenarios.
diff --git a/crates/dapf/src/main.rs b/crates/dapf/src/main.rs
index a81c22e6..fb16a5ec 100644
--- a/crates/dapf/src/main.rs
+++ b/crates/dapf/src/main.rs
@@ -192,7 +192,7 @@ enum HpkeAction {
}
#[derive(Debug, Subcommand)]
-#[allow(clippy::large_enum_variant)]
+#[expect(clippy::large_enum_variant)]
enum TestAction {
/// Add an hpke config to a test-utils enabled `daphne-server`.
AddHpkeConfig {
diff --git a/crates/daphne-server/docker/example-service.Dockerfile b/crates/daphne-server/docker/example-service.Dockerfile
index 0358d863..e05970cd 100644
--- a/crates/daphne-server/docker/example-service.Dockerfile
+++ b/crates/daphne-server/docker/example-service.Dockerfile
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Cloudflare, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
-FROM rust:1.80.1-bookworm AS builder
+FROM rust:1.82-bookworm AS builder
RUN apt update && \
apt install -y \
diff --git a/crates/daphne-server/src/storage_proxy_connection/kv/cache.rs b/crates/daphne-server/src/storage_proxy_connection/kv/cache.rs
index c17c384d..14b806f0 100644
--- a/crates/daphne-server/src/storage_proxy_connection/kv/cache.rs
+++ b/crates/daphne-server/src/storage_proxy_connection/kv/cache.rs
@@ -76,7 +76,7 @@ impl Cache {
);
}
- #[allow(dead_code)]
+ #[expect(dead_code)]
pub fn delete
(&mut self, key: &str) -> CacheResult
where
P: KvPrefix,
diff --git a/crates/daphne-server/src/storage_proxy_connection/mod.rs b/crates/daphne-server/src/storage_proxy_connection/mod.rs
index 19ed049e..baf2425a 100644
--- a/crates/daphne-server/src/storage_proxy_connection/mod.rs
+++ b/crates/daphne-server/src/storage_proxy_connection/mod.rs
@@ -42,7 +42,7 @@ impl<'h> Do<'h> {
}
}
- #[allow(dead_code)]
+ #[expect(dead_code)]
pub fn with_retry(self) -> Self {
Self {
retry: true,
@@ -126,7 +126,7 @@ impl<'w> Do<'w> {
}
}
- #[allow(dead_code)]
+ #[expect(dead_code)]
pub fn request_with_id(
&self,
path: B,
diff --git a/crates/daphne-server/tests/e2e/e2e.rs b/crates/daphne-server/tests/e2e/e2e.rs
index 061c369b..e94e5e37 100644
--- a/crates/daphne-server/tests/e2e/e2e.rs
+++ b/crates/daphne-server/tests/e2e/e2e.rs
@@ -1162,7 +1162,7 @@ async fn leader_collect_taskprov_ok(version: DapVersion) {
.poll_collection_url_using_token(client, &collect_uri, DAP_TASKPROV_COLLECTOR_TOKEN)
.await
.unwrap();
- #[allow(clippy::format_in_format_args)]
+ #[expect(clippy::format_in_format_args)]
{
assert_eq!(
resp.status(),
diff --git a/crates/daphne-server/tests/e2e/test_runner.rs b/crates/daphne-server/tests/e2e/test_runner.rs
index 9e63e089..bd64ce28 100644
--- a/crates/daphne-server/tests/e2e/test_runner.rs
+++ b/crates/daphne-server/tests/e2e/test_runner.rs
@@ -359,7 +359,7 @@ impl TestRunner {
get_raw_hpke_config(client, self.task_id.as_ref(), &self.helper_url, "helper").await
}
- #[allow(dead_code)]
+ #[expect(dead_code)]
pub async fn leader_post_expect_ok(
&self,
client: &reqwest::Client,
@@ -401,7 +401,7 @@ impl TestRunner {
Ok(())
}
- #[allow(dead_code, clippy::too_many_arguments)]
+ #[expect(dead_code, clippy::too_many_arguments)]
pub async fn leader_post_expect_abort(
&self,
client: &reqwest::Client,
@@ -515,7 +515,7 @@ impl TestRunner {
Ok(())
}
- #[allow(clippy::too_many_arguments)]
+ #[expect(clippy::too_many_arguments)]
pub async fn leader_put_expect_abort(
&self,
client: &reqwest::Client,
diff --git a/crates/daphne-worker-test/docker/runtests.Dockerfile b/crates/daphne-worker-test/docker/runtests.Dockerfile
index 3e8d5b6f..f04ed68d 100644
--- a/crates/daphne-worker-test/docker/runtests.Dockerfile
+++ b/crates/daphne-worker-test/docker/runtests.Dockerfile
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Cloudflare, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
-FROM rust:1.80.1-bookworm
+FROM rust:1.82-bookworm
WORKDIR /tmp/dap_test
diff --git a/crates/daphne-worker-test/docker/storage-proxy.Dockerfile b/crates/daphne-worker-test/docker/storage-proxy.Dockerfile
index e31fd3de..f9df80c2 100644
--- a/crates/daphne-worker-test/docker/storage-proxy.Dockerfile
+++ b/crates/daphne-worker-test/docker/storage-proxy.Dockerfile
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Cloudflare, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
-FROM rust:1.80.1-bookworm AS builder
+FROM rust:1.82-bookworm AS builder
RUN apt update && apt install -y capnproto clang cmake
# Pre-install worker-build and Rust's wasm32 target to speed up our custom build command
diff --git a/crates/daphne-worker/src/durable/mod.rs b/crates/daphne-worker/src/durable/mod.rs
index 4324aaf7..9c476cd2 100644
--- a/crates/daphne-worker/src/durable/mod.rs
+++ b/crates/daphne-worker/src/durable/mod.rs
@@ -80,7 +80,8 @@ macro_rules! mk_durable_object {
#[doc(hidden)]
pub async fn fetch(
&mut self,
- #[allow(unused_mut)] mut req: ::worker::Request
+ #[cfg(feature = "test-utils")] mut req: ::worker::Request,
+ #[cfg(not(feature = "test-utils"))] req: ::worker::Request,
) -> ::worker::Result<::worker::Response> {
use $crate::durable::{create_span_from_request, GcDurableObject};
use ::tracing::Instrument;
@@ -135,7 +136,6 @@ macro_rules! mk_durable_object {
&self.env
}
- #[allow(dead_code)]
async fn get(&self, key: &str) -> ::worker::Result