diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index e6f90b0eb..eb0396992 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -162,6 +162,7 @@ default-tests = [ "crates-io", "git", "pypi", + "r2", "python", "python-managed", "python-eol", @@ -174,6 +175,8 @@ crates-io = [] git = [] # Introduces a testing dependency on PyPI. pypi = [] +# Introduces a testing dependency on R2. +r2 = [] # Introduces a testing dependency on a local Python installation. python = [] # Introduces a testing dependency on a local Python installation with specific patch versions. diff --git a/crates/uv/tests/it/extract.rs b/crates/uv/tests/it/extract.rs index 2a06d89bf..d1c9a8bd9 100644 --- a/crates/uv/tests/it/extract.rs +++ b/crates/uv/tests/it/extract.rs @@ -1,3 +1,5 @@ +#![cfg(feature = "r2")] + use futures::TryStreamExt; use tokio_util::compat::FuturesAsyncReadCompatExt;