pub struct CrateContext {
pub build_script: Option<BuildScriptContext>,
}
Fields§
§build_script: Option<BuildScriptContext>
Context from the crate’s build script, if one exists.
Implementations§
Source§impl CrateContext
impl CrateContext
Sourcepub fn generate(
config: &GlobalConfig,
crate_config: &CrateConfig,
metadata: &PackageMetadata<'_>,
) -> Result<CrateContext, Error>
pub fn generate( config: &GlobalConfig, crate_config: &CrateConfig, metadata: &PackageMetadata<'_>, ) -> Result<CrateContext, Error>
Generates necessary external (non-Cargo.toml
) context for a crate.
Trait Implementations§
Source§impl Clone for CrateContext
impl Clone for CrateContext
Source§fn clone(&self) -> CrateContext
fn clone(&self) -> CrateContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CrateContext
impl Debug for CrateContext
Source§impl Default for CrateContext
impl Default for CrateContext
Source§fn default() -> CrateContext
fn default() -> CrateContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrateContext
impl RefUnwindSafe for CrateContext
impl Send for CrateContext
impl Sync for CrateContext
impl Unpin for CrateContext
impl UnwindSafe for CrateContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)