Skip to content

Commit 6c926ef

Browse files
authored
Add PURL support (#36)
1 parent 760b84b commit 6c926ef

File tree

21 files changed

+1027
-2
lines changed

21 files changed

+1027
-2
lines changed

locator-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "locator-codegen"
3-
version = "4.1.0"
3+
version = "4.2.0"
44
edition = "2024"
55

66
[lints]

locator/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "locator"
3-
version = "4.1.0"
3+
version = "4.2.0"
44
edition = "2024"
55

66
[lints]
@@ -33,6 +33,7 @@ locator-codegen = { path = "../locator-codegen" }
3333
serde_plain = "1.0.2"
3434
miette = "7.6.0"
3535
non-empty-string = { version = "0.2.6", features = ["macros", "serde"] }
36+
purl = { version = "0.1.6", features = ["serde"] }
3637

3738
[dev-dependencies]
3839
assert_matches = "1.5.0"

locator/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ mod locator_strict;
2929
mod locator_t;
3030
mod org_id;
3131
mod package;
32+
pub mod purl;
3233
mod revision;
3334

3435
pub use constraint::*;
@@ -161,6 +162,10 @@ pub mod macro_support {
161162
Public => Swift, "swift";
162163
/// Indicates a specific RPM file.
163164
Private => Rpm, "rpm";
165+
/// Interacts with SourceForge.
166+
Public => SourceForge, "sourceforge";
167+
/// Interacts with StackOverflow.
168+
Public => StackOverflow, "stackoverflow";
164169
/// An unresolved path dependency.
165170
Private => UnresolvedPath, "upath";
166171
/// Specifies arbitrary code at an arbitrary URL.

0 commit comments

Comments
 (0)