pub enum SourceReplacement {
None,
SparseMirror {
index: RegistryIndex,
auth: Option<AuthToken>,
},
}Expand description
Where a [source.crates-io] replace-with chain resolved to, for plain (Registry-sourced)
dependencies (spec FR-005/FR-006/FR-007).
Variants§
None
No [source] override applies — no [source.crates-io] table, a directory/
local-registry/non-sparse-git terminal (FR-006), a cyclic/unbounded chain
(FR-007), or a terminal that failed RegistryIndex::new’s validation/policy gate.
Plain dependencies keep resolving against crates.io, unchanged from today.
SparseMirror
The chain terminated at a sparse+https:// index (FR-005).
Fields
index: RegistryIndexThe validated, fetchable mirror index.
auth: Option<AuthToken>The bearer token to attach to requests against index, if any — populated only
when the whole chain’s IndexTrust folded to IndexTrust::Trusted (plan-1b
§1.4’s “coupled trust trap” guard): a single workspace-tier link anywhere in the
chain forces this to None, even if the terminal itself is a $CARGO_HOME
[registries] entry carrying a token.
Trait Implementations§
Source§impl Clone for SourceReplacement
impl Clone for SourceReplacement
Source§fn clone(&self) -> SourceReplacement
fn clone(&self) -> SourceReplacement
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 SourceReplacement
impl Debug for SourceReplacement
Source§impl PartialEq for SourceReplacement
impl PartialEq for SourceReplacement
Source§fn eq(&self, other: &SourceReplacement) -> bool
fn eq(&self, other: &SourceReplacement) -> bool
self and other values to be equal, and is used by ==.