pub struct CargoBuildScript {
pub name: Field<QuotedString>,
pub script_src: Field<List<QuotedString>>,
pub deps: Field<List<QuotedString>>,
pub proc_macro_deps: Field<List<QuotedString>>,
pub build_script_env: Field<Dict<QuotedString, QuotedString>>,
pub data: Field<List<QuotedString>>,
pub compile_data: Field<List<QuotedString>>,
pub rustc_flags: Field<List<QuotedString>>,
pub rustc_env: Field<Dict<QuotedString, QuotedString>>,
pub extras: Vec<Box<dyn ToBazelDefinition>>,
}
Expand description
Fields§
§name: Field<QuotedString>
§script_src: Field<List<QuotedString>>
§deps: Field<List<QuotedString>>
§proc_macro_deps: Field<List<QuotedString>>
§build_script_env: Field<Dict<QuotedString, QuotedString>>
§data: Field<List<QuotedString>>
§compile_data: Field<List<QuotedString>>
§rustc_flags: Field<List<QuotedString>>
§rustc_env: Field<Dict<QuotedString, QuotedString>>
§extras: Vec<Box<dyn ToBazelDefinition>>
Implementations§
Source§impl CargoBuildScript
impl CargoBuildScript
pub fn generate( config: &GlobalConfig, context: &CrateContext, crate_config: &CrateConfig, metadata: &PackageMetadata<'_>, ) -> Result<Option<Self>, Error>
Trait Implementations§
Source§impl Debug for CargoBuildScript
impl Debug for CargoBuildScript
Source§impl RustTarget for CargoBuildScript
impl RustTarget for CargoBuildScript
Source§impl ToBazelDefinition for CargoBuildScript
impl ToBazelDefinition for CargoBuildScript
Auto Trait Implementations§
impl Freeze for CargoBuildScript
impl !RefUnwindSafe for CargoBuildScript
impl !Send for CargoBuildScript
impl !Sync for CargoBuildScript
impl Unpin for CargoBuildScript
impl !UnwindSafe for CargoBuildScript
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