pub struct LockedPkg {
pub name: String,
pub source: String,
pub tag: Option<String>,
pub rev: Option<String>,
pub branch: Option<String>,
pub sha: String,
pub entry: PathBuf,
}Expand description
A single locked package entry in [[pkg]].
Pins one dependency to an exact commit SHA together with the metadata needed to re-resolve or update it in the future.
Unknown keys cause an immediate parse error (#[serde(deny_unknown_fields)]).
Fields§
§name: StringLocal package alias. Must be unique within a lockfile.
source: StringSource URL with protocol prefix, e.g. "git+https://github.com/x/foo".
The git+ prefix follows Cargo lock convention and leaves room for
future http+ or luarocks+ sources.
tag: Option<String>Git tag used to resolve this package (if any).
At most one of tag, rev, branch is expected to be set.
rev: Option<String>Git revision (commit SHA short-or-full) supplied by the consumer manifest (if any).
When rev is set, sha must equal its fully-resolved commit SHA.
branch: Option<String>Git branch this package was resolved from (if any).
Non-reproducible by nature; the resolved commit is captured in sha.
sha: StringFull 40-character commit SHA that pins this package.
This is the canonical reproducibility anchor. Short SHAs are not accepted; the GitFetcher (ST3) always returns the full SHA.
entry: PathBufResolved Lua require entry path within the vendored directory.
Stored with forward-slash separators ("src", "lua", ".") for
portability across platforms.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockedPkg
impl<'de> Deserialize<'de> for LockedPkg
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>,
impl Eq for LockedPkg
impl StructuralPartialEq for LockedPkg
Auto Trait Implementations§
impl Freeze for LockedPkg
impl RefUnwindSafe for LockedPkg
impl Send for LockedPkg
impl Sync for LockedPkg
impl Unpin for LockedPkg
impl UnsafeUnpin for LockedPkg
impl UnwindSafe for LockedPkg
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
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
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>
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>
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