diff --git a/crates/uv-keyring/src/lib.rs b/crates/uv-keyring/src/lib.rs index 2ddec8a79..6675164c7 100644 --- a/crates/uv-keyring/src/lib.rs +++ b/crates/uv-keyring/src/lib.rs @@ -410,6 +410,7 @@ mod tests { use std::collections::HashMap; /// Create a platform-specific credential given the constructor, service, and user + #[cfg(feature = "keyring-tests")] pub(crate) fn entry_from_constructor(f: F, service: &str, user: &str) -> Entry where F: FnOnce(Option<&str>, &str, &str) -> Result, diff --git a/crates/uv-keyring/src/macos.rs b/crates/uv-keyring/src/macos.rs index 9c7dfbb40..cbaeb463a 100644 --- a/crates/uv-keyring/src/macos.rs +++ b/crates/uv-keyring/src/macos.rs @@ -331,6 +331,7 @@ pub fn decode_error(err: Error) -> ErrorCode { } } +#[cfg(feature = "keyring-tests")] #[cfg(not(miri))] #[cfg(test)] mod tests {