From 3af06fb1085b754b8b7dd8b6d8293aca50e504cf Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 17 Dec 2024 19:44:35 +0100 Subject: [PATCH] Fix build without features --- purl/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/purl/src/lib.rs b/purl/src/lib.rs index 757dc62..30a0c2d 100644 --- a/purl/src/lib.rs +++ b/purl/src/lib.rs @@ -321,6 +321,7 @@ impl GenericPurl { } } +#[cfg(feature = "package-type")] impl Purl { /// Create a new [`PurlBuilder`] with a combined name and namespace. pub fn builder_with_combined_name( @@ -590,6 +591,7 @@ mod tests { assert_eq!(None, purl.subpath()); } + #[cfg(feature = "package-type")] #[test] fn namespaced_name() { let purl =