pub struct McpPackagePin {
pub runner: String,
pub name: String,
pub version: String,
pub install_dir: String,
pub lockfile_sha256: String,
}Expand description
A package MUR installed itself, and the fingerprint that proves the installed tree hasn’t changed.
lockfile_sha256 hashes the install’s package-lock.json, which already
records an integrity hash for every package in the dependency tree — so one
small file covers the whole tree, and startup verification stays cheap no
matter how large node_modules grows.
The lockfile pins what was installed. Editing a file inside
node_modules afterwards would not change it; catching that needs a full
tree hash, which is deliberately not done here — see the module docs on
mur-core::cmd::agent_mcp_vendor for where that line is drawn.
Fields§
§runner: StringPackage ecosystem — npm today.
name: StringPackage name, including any @scope/ prefix.
version: StringExact installed version.
install_dir: StringDirectory MUR installed into, absolute.
lockfile_sha256: StringSHA-256 (lowercase hex) of <install_dir>/package-lock.json.
Trait Implementations§
Source§impl Clone for McpPackagePin
impl Clone for McpPackagePin
Source§fn clone(&self) -> McpPackagePin
fn clone(&self) -> McpPackagePin
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for McpPackagePin
impl Debug for McpPackagePin
Source§impl Default for McpPackagePin
impl Default for McpPackagePin
Source§fn default() -> McpPackagePin
fn default() -> McpPackagePin
Source§impl<'de> Deserialize<'de> for McpPackagePin
impl<'de> Deserialize<'de> for McpPackagePin
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 McpPackagePin
Source§impl PartialEq for McpPackagePin
impl PartialEq for McpPackagePin
Source§impl Serialize for McpPackagePin
impl Serialize for McpPackagePin
impl StructuralPartialEq for McpPackagePin
Auto Trait Implementations§
impl Freeze for McpPackagePin
impl RefUnwindSafe for McpPackagePin
impl Send for McpPackagePin
impl Sync for McpPackagePin
impl Unpin for McpPackagePin
impl UnsafeUnpin for McpPackagePin
impl UnwindSafe for McpPackagePin
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.