Struct cargo::ops::common_for_install_and_uninstall::InstallInfo
source · struct InstallInfo {
version_req: Option<String>,
bins: BTreeSet<String>,
features: BTreeSet<String>,
all_features: bool,
no_default_features: bool,
profile: String,
target: Option<String>,
rustc: Option<String>,
other: BTreeMap<String, Value>,
}
Expand description
Tracking information for the installation of a single package.
This tracks the settings that were used when the package was installed. Future attempts to install the same package will check these settings to determine if it needs to be rebuilt/reinstalled. If nothing has changed, then Cargo will inform the user that it is “up to date”.
This is only used for the v2 format.
Fields§
§version_req: Option<String>
Version requested via --version
.
None if --version
not specified. Currently not used, possibly may be
used in the future.
bins: BTreeSet<String>
Set of binary names installed.
features: BTreeSet<String>
Set of features explicitly enabled.
all_features: bool
§no_default_features: bool
§profile: String
Either “debug” or “release”.
target: Option<String>
The installation target.
Either the host or the value specified in --target
.
None if unknown (when loading from v1).
rustc: Option<String>
Output of rustc -V
.
None if unknown (when loading from v1).
Currently not used, possibly may be used in the future.
other: BTreeMap<String, Value>
Forwards compatibility.
Implementations§
source§impl InstallInfo
impl InstallInfo
fn from_v1(set: &BTreeSet<String>) -> InstallInfo
sourcefn is_up_to_date(
&self,
opts: &CompileOptions,
target: &str,
exes: &BTreeSet<String>
) -> bool
fn is_up_to_date( &self, opts: &CompileOptions, target: &str, exes: &BTreeSet<String> ) -> bool
Determine if this installation is “up to date”, or if it needs to be reinstalled.
This does not do Package/Source/Version checking.
Trait Implementations§
source§impl Debug for InstallInfo
impl Debug for InstallInfo
source§impl<'de> Deserialize<'de> for InstallInfo
impl<'de> Deserialize<'de> for InstallInfo
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>,
Auto Trait Implementations§
impl RefUnwindSafe for InstallInfo
impl Send for InstallInfo
impl Sync for InstallInfo
impl Unpin for InstallInfo
impl UnwindSafe for InstallInfo
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 176 bytes