diff --git a/Cargo.toml b/Cargo.toml index beb843c..0ed2c0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ chrono = { version = "0.4", features = ["serde"] } cvss = { version = "2", features = ["serde"] } serde_json = "1" serde_with = "3" -packageurl = "0.3" +packageurl = "0.6.0-rc.1" cpe = "0.1.2" tempfile = "3" @@ -35,3 +35,6 @@ rustsec-interop = ["rustsec", "crates-index"] [dev-dependencies] serde_json = "1" + +[patch.crates-io] +packageurl = { git = "https://github.com/jcrossley3/packageurl.rs", branch = "issue-28" } diff --git a/src/definitions.rs b/src/definitions.rs index a5b359d..b12f08e 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -23,7 +23,7 @@ pub struct Acknowledgment { pub struct BranchesT(pub Vec); impl BranchesT { - pub(crate) fn product_ids(&self) -> Option> { + pub fn product_ids(&self) -> Option> { if self.0.is_empty() { None } else { diff --git a/src/interop.rs b/src/interop.rs index 649f046..8fe5adc 100644 --- a/src/interop.rs +++ b/src/interop.rs @@ -321,6 +321,7 @@ pub mod rustsec { PackageUrl::new("cargo", package.to_string()) .unwrap() .with_version(version.to_string()) + .unwrap() .to_owned(), ), sbom_urls: None,