Struct cargo::core::dependency::Dependency [] [src]

pub struct Dependency { /* fields omitted */ }

Information about a dependency requested by a Cargo manifest. Cheap to copy.

Methods

impl Dependency
[src]

Attempt to create a Dependency from an entry in the manifest.

Attempt to create a Dependency from an entry in the manifest.

If none, this dependencies must be built for all platforms. If some, it must only be built for the specified platform.

Sets the list of features requested for the package.

Sets whether the dependency requests default features of the package.

Sets whether the dependency is optional.

Set the source id for this dependency

Set the version requirement for this dependency

Lock this dependency to depending on the specified package id

Returns false if the dependency is only used to build the local package.

Returns true if the default features of the dependency are requested.

Returns the list of features that are requested by the dependency.

Returns true if the package (sum) can fulfill this dependency request.

Returns true if the package (id) can fulfill this dependency request.

Trait Implementations

impl PartialEq for Dependency
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Dependency
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Dependency
[src]

Formats the value using the given formatter.

impl Serialize for Dependency
[src]

Serialize this value into the given Serde serializer. Read more