Add cfg for other external resources tests (#8320)

Fixes #8295
This commit is contained in:
konsti 2024-10-18 18:30:11 +02:00 committed by GitHub
parent 42dac85bf7
commit c162078050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -119,7 +119,7 @@ ignored = [
]
[features]
default = ["python", "pypi", "git", "performance"]
default = ["python", "pypi", "git", "performance", "crates-io"]
# Use better memory allocators, etc. — also turns-on self-update.
performance = [
"performance-memory-allocator",
@ -137,5 +137,7 @@ python-patch = []
pypi = []
# Introduces a dependency on Git.
git = []
# Introduces a dependency on crates.io.
crates-io = []
# Adds self-update functionality.
self-update = ["axoupdater", "uv-cli/self-update"]

View file

@ -2538,6 +2538,7 @@ fn init_library_flit() -> Result<()> {
/// Run `uv init --app --package --build-backend maturin` to create a packaged application project
#[test]
#[cfg(feature = "crates-io")]
fn init_app_build_backend_maturin() -> Result<()> {
let context = TestContext::new("3.12");
@ -2808,6 +2809,7 @@ fn init_app_build_backend_scikit() -> Result<()> {
/// Run `uv init --lib --build-backend maturin` to create a packaged application project
#[test]
#[cfg(feature = "crates-io")]
fn init_lib_build_backend_maturin() -> Result<()> {
let context = TestContext::new("3.12");