pub struct Dep {
pub git: String,
pub tag: Option<String>,
pub rev: Option<String>,
pub branch: Option<String>,
pub entry: Option<PathBuf>,
}Expand description
A git-based dependency declared in [deps].
At most one of tag, rev, or branch may be set. All three being
absent is accepted at parse time (treated as HEAD resolution); hard
enforcement is deferred to the fetcher (ST3).
Fields§
§git: StringRemote git URL (required).
tag: Option<String>Pin to a specific tag. Mutually exclusive with rev and branch.
rev: Option<String>Pin to a specific commit SHA. Mutually exclusive with tag and branch.
branch: Option<String>Track a branch (non-reproducible). Mutually exclusive with tag and rev.
entry: Option<PathBuf>Override the Lua require entry root for this dependency.
Takes precedence over the author’s own [package].entry.
When absent, the author’s entry (or the fallback chain) applies.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dep
impl<'de> Deserialize<'de> for Dep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Dep
impl StructuralPartialEq for Dep
Auto Trait Implementations§
impl Freeze for Dep
impl RefUnwindSafe for Dep
impl Send for Dep
impl Sync for Dep
impl Unpin for Dep
impl UnsafeUnpin for Dep
impl UnwindSafe for Dep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more