Struct cargo_project::Project

source ·
pub struct Project { /* private fields */ }
Expand description

Information about a Cargo project

Implementations§

Retrieves information about the Cargo project at the given path

path doesn’t need to be the directory that contains the Cargo.toml file; it can be any point within the Cargo project.

Returns the path to a build artifact

Inputs
  • artifact is the kind of build artifact: Bin (--bin), Example (--example), Lib (--lib)
  • profile is the compilation profile: Dev or Release (--release)
  • target is the specified compilation target (--target)
  • host is the triple of host – this is used as the compilation target when no target is specified and the project has no default build target

Returns the name of the project (package.name)

Returns the default compilation target

Returns the target directory path

This is where build artifacts are placed

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.

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.