From 8cb22f55006bd05c94bc281172675c4a03479b2b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 25 Jul 2024 19:54:07 -0400 Subject: [PATCH] Gate `FromStr` to `pep508` feature (#5464) ## Summary This is triggering when you run without `--all-features` (but we always use `--all-features` in CI, so it went unnoticed). --- crates/pep508-rs/src/marker/environment.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/pep508-rs/src/marker/environment.rs b/crates/pep508-rs/src/marker/environment.rs index d9c3ee49d..54f80b394 100644 --- a/crates/pep508-rs/src/marker/environment.rs +++ b/crates/pep508-rs/src/marker/environment.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "pyo3")] use std::str::FromStr; use std::sync::Arc;