pub struct CargoTarget {
pub package: String,
pub bin: String,
pub workspace_root: PathBuf,
pub manifest_dir: PathBuf,
pub rust_version: Option<String>,
pub path_dependencies: Vec<PathBuf>,
}Expand description
The resolved Cargo target.
Fields§
§package: StringThe package’s name (cargo build -p).
bin: StringThe binary target’s name (cargo build --bin, the image’s /app/<bin>).
workspace_root: PathBufcargo metadata’s workspace_root.
manifest_dir: PathBufThe directory of the package’s Cargo.toml.
rust_version: Option<String>The package’s rust_version as cargo metadata reports it (workspace inheritance
resolved), the second step of the builder version chain.
path_dependencies: Vec<PathBuf>The directory of every path dependency of every workspace member.
Trait Implementations§
Source§impl Clone for CargoTarget
impl Clone for CargoTarget
Source§impl Debug for CargoTarget
impl Debug for CargoTarget
Source§impl Default for CargoTarget
impl Default for CargoTarget
impl Eq for CargoTarget
Source§impl PartialEq for CargoTarget
impl PartialEq for CargoTarget
impl StructuralPartialEq for CargoTarget
Auto Trait Implementations§
impl Forget for CargoTarget
impl Freeze for CargoTarget
impl Move for CargoTarget
impl RefUnwindSafe for CargoTarget
impl Send for CargoTarget
impl Sync for CargoTarget
impl Unpin for CargoTarget
impl UnsafeUnpin for CargoTarget
impl UnwindSafe for CargoTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.