pub struct CargoBuildConfig {Show 20 fields
pub pipelining: Option<bool>,
pub dep_info_basedir: Option<ConfigRootRelativePath>,
pub target_dir: Option<ConfigRootRelativePath>,
pub build_dir: Option<ConfigRootRelativePathTemplate>,
pub incremental: Option<bool>,
pub target: Option<BuildTargetConfig>,
pub profile: Option<ProfileName>,
pub jobs: Option<JobsConfig>,
pub rustflags: Option<StringList>,
pub rustdocflags: Option<StringList>,
pub rustc_wrapper: Option<ConfigRootRelativeProgramPath>,
pub rustc_workspace_wrapper: Option<ConfigRootRelativeProgramPath>,
pub rustc: Option<ConfigRootRelativeProgramPath>,
pub rustdoc: Option<ConfigRootRelativeProgramPath>,
pub artifact_dir: Option<ConfigRootRelativePath>,
pub warnings: Option<WarningHandling>,
pub sbom: Option<bool>,
pub analysis: Option<CargoBuildAnalysis>,
pub fingerprint: Option<FingerprintMethod>,
pub build_std: Option<BuildStdConfig>,
}Expand description
The [build] table.
Example configuration:
[build]
jobs = 4
target = "x86_64-unknown-linux-gnu"
target-dir = "target"
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
incremental = trueFields§
§pipelining: Option<bool>§dep_info_basedir: Option<ConfigRootRelativePath>§target_dir: Option<ConfigRootRelativePath>§build_dir: Option<ConfigRootRelativePathTemplate>§incremental: Option<bool>§target: Option<BuildTargetConfig>§profile: Option<ProfileName>§jobs: Option<JobsConfig>§rustflags: Option<StringList>§rustdocflags: Option<StringList>§rustc_wrapper: Option<ConfigRootRelativeProgramPath>§rustc_workspace_wrapper: Option<ConfigRootRelativeProgramPath>§rustc: Option<ConfigRootRelativeProgramPath>§rustdoc: Option<ConfigRootRelativeProgramPath>§artifact_dir: Option<ConfigRootRelativePath>§warnings: Option<WarningHandling>§sbom: Option<bool>Unstable feature -Zsbom.
analysis: Option<CargoBuildAnalysis>Unstable feature -Zbuild-analysis.
fingerprint: Option<FingerprintMethod>Unstable feature -Zchecksum-freshness.
build_std: Option<BuildStdConfig>Trait Implementations§
Source§impl Debug for CargoBuildConfig
impl Debug for CargoBuildConfig
Source§impl<'de> Deserialize<'de> for CargoBuildConfig
impl<'de> Deserialize<'de> for CargoBuildConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CargoBuildConfig
impl Freeze for CargoBuildConfig
impl Move for CargoBuildConfig
impl RefUnwindSafe for CargoBuildConfig
impl Send for CargoBuildConfigwhere
RawVecInner: Send,
impl Sync for CargoBuildConfigwhere
RawVecInner: Sync,
impl Unpin for CargoBuildConfig
impl UnsafeUnpin for CargoBuildConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CargoBuildConfigwhere
RawVecInner: UnwindSafe,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 720 bytes