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 =