pub struct CargoConfig {
pub net_git_fetch_with_cli: bool,
pub registries_crates_io_protocol_sparse: bool,
pub http: HttpCargoConfig,
pub sparse_registries: SparseRegistryConfig,
}Expand description
cargo configuration, as obtained from .cargo/config[.toml]
Fields§
§net_git_fetch_with_cli: bool§registries_crates_io_protocol_sparse: boolhttps://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol https://doc.rust-lang.org/stable/cargo/reference/registry-index.html#sparse-protocol
http: HttpCargoConfig§sparse_registries: SparseRegistryConfigImplementations§
Source§impl CargoConfig
impl CargoConfig
pub fn load(crates_file: &Path) -> CargoConfig
Trait Implementations§
Source§impl Clone for CargoConfig
impl Clone for CargoConfig
Source§fn clone(&self) -> CargoConfig
fn clone(&self) -> CargoConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoConfig
impl Debug for CargoConfig
Source§impl Hash for CargoConfig
impl Hash for CargoConfig
Source§impl Ord for CargoConfig
impl Ord for CargoConfig
Source§fn cmp(&self, other: &CargoConfig) -> Ordering
fn cmp(&self, other: &CargoConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CargoConfig
impl PartialEq for CargoConfig
Source§impl PartialOrd for CargoConfig
impl PartialOrd for CargoConfig
impl Eq for CargoConfig
impl StructuralPartialEq for CargoConfig
Auto Trait Implementations§
impl Freeze for CargoConfig
impl RefUnwindSafe for CargoConfig
impl Send for CargoConfig
impl Sync for CargoConfig
impl Unpin for CargoConfig
impl UnwindSafe for CargoConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
Compare self to
key and return true if they are equal.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
Compare self to
key and return true if they are equal.