pub struct PortPackageSource {
pub name: PackageName,
pub version: Version,
pub manifest_path: PathBuf,
pub origin: PortOrigin,
}Expand description
One foundation-port package source. Built by the CLI
orchestration layer after cabin_port::prepare() materializes
the port directory; the loader resolves a
DependencySource::Port declaration to the matching entry
here and inserts a WorkspacePackage tagged
kind = PackageKind::Local (foundation ports are local
development policy and never enter published metadata).
Fields§
§name: PackageNameAuthoritative identity declared by port.toml.
version: Version§manifest_path: PathBufAbsolute path to the prepared port directory’s overlay
cabin.toml. The workspace loader treats this as the
dep’s manifest_path.
origin: PortOriginHow the recipe was located. Drives whether the dep
walker looks this entry up by canonical port directory
(PortDir) or by package name (Builtin).
Trait Implementations§
Source§impl Clone for PortPackageSource
impl Clone for PortPackageSource
Source§fn clone(&self) -> PortPackageSource
fn clone(&self) -> PortPackageSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PortPackageSource
impl RefUnwindSafe for PortPackageSource
impl Send for PortPackageSource
impl Sync for PortPackageSource
impl Unpin for PortPackageSource
impl UnsafeUnpin for PortPackageSource
impl UnwindSafe for PortPackageSource
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