support ::repo syntax

This commit is contained in:
John Turner
2025-11-18 01:44:45 +00:00
parent db02762ee1
commit 78398b7ebe
2 changed files with 53 additions and 16 deletions

View File

@@ -103,6 +103,9 @@ pub enum UseDepCondition {
Question,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Repo(String);
#[derive(Clone, Debug, PartialEq, Eq, Get)]
pub struct UseDep {
negate: Option<UseDepNegate>,
@@ -132,6 +135,7 @@ pub struct Atom {
name: Name,
version: Option<(VersionOperator, Version, Option<Wildcard>)>,
slot: Option<Slot>,
repo: Option<Repo>,
#[get(kind = "deref")]
usedeps: Vec<UseDep>,
}