pub struct EncodableResolve {
    version: Option<u32>,
    package: Option<Vec<EncodableDependency>>,
    root: Option<EncodableDependency>,
    metadata: Option<Metadata>,
    patch: Patch,
}
Expand description

The Cargo.lock structure.

Fields§

§version: Option<u32>§package: Option<Vec<EncodableDependency>>§root: Option<EncodableDependency>

root is optional to allow backward compatibility.

§metadata: Option<Metadata>§patch: Patch

Implementations§

Convert a Cargo.lock to a Resolve.

Note that this Resolve is not “complete”. For example, the dependencies do not know the difference between regular/dev/build dependencies, so they are not filled in. It also does not include features. Care should be taken when using this Resolve. One of the primary uses is to be used with resolve_with_previous to guide the resolver to create a complete Resolve.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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: 248 bytes