pub enum PackageKind {
Local,
Registry,
}Expand description
Where a WorkspacePackage came from.
Variants§
Local
A local-filesystem package: the workspace root or a member, a
path = "..." dependency, a [patch]ed package, or a prepared
foundation port.
Local is the trust boundary used when deciding whether to honor
a package’s own raw [profile] compiler/linker flags: every
Local source is user-controlled. Root / members / path deps are
local working trees; patches are local override copies; and a
port’s build flags come from its trusted overlay recipe (bundled
or user-pinned), not the downloaded source archive. The loader
guarantees a downloaded registry archive can never introduce a
Local package, because it rejects path / port dependencies
declared by a PackageKind::Registry package.
Registry
A registry package whose source archive was already fetched and
extracted into the artifact cache. Untrusted: its own [profile]
cflags / cxxflags / ldflags are dropped during build-flag
resolution.
Trait Implementations§
Source§impl Clone for PackageKind
impl Clone for PackageKind
Source§fn clone(&self) -> PackageKind
fn clone(&self) -> PackageKind
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 PackageKind
impl Debug for PackageKind
Source§impl PartialEq for PackageKind
impl PartialEq for PackageKind
Source§fn eq(&self, other: &PackageKind) -> bool
fn eq(&self, other: &PackageKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for PackageKind
impl Eq for PackageKind
impl StructuralPartialEq for PackageKind
Auto Trait Implementations§
impl Freeze for PackageKind
impl RefUnwindSafe for PackageKind
impl Send for PackageKind
impl Sync for PackageKind
impl Unpin for PackageKind
impl UnsafeUnpin for PackageKind
impl UnwindSafe for PackageKind
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,
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.