Struct cargo_gazelle::targets::RustLibrary
source · pub struct RustLibrary {Show 13 fields
name: Field<QuotedString>,
version: Field<QuotedString>,
is_proc_macro: bool,
features: Field<List<QuotedString>>,
aliases: Field<CratesUniverseMacro<Aliases_>>,
deps: Field<List<QuotedString>>,
proc_macro_deps: Field<List<QuotedString>>,
data: Field<List<QuotedString>>,
compile_data: Field<List<QuotedString>>,
disable_pipelining: Option<Field<bool>>,
rustc_flags: Field<List<QuotedString>>,
rustc_env: Field<Dict<QuotedString, QuotedString>>,
extra_targets: Vec<Box<dyn ToBazelDefinition>>,
}
Expand description
Fields§
§name: Field<QuotedString>
§version: Field<QuotedString>
§is_proc_macro: bool
§features: Field<List<QuotedString>>
§aliases: Field<CratesUniverseMacro<Aliases_>>
§deps: Field<List<QuotedString>>
§proc_macro_deps: Field<List<QuotedString>>
§data: Field<List<QuotedString>>
§compile_data: Field<List<QuotedString>>
§disable_pipelining: Option<Field<bool>>
§rustc_flags: Field<List<QuotedString>>
§rustc_env: Field<Dict<QuotedString, QuotedString>>
§extra_targets: Vec<Box<dyn ToBazelDefinition>>
Other targets, e.g. unit tests, that we generate for a library.
Implementations§
source§impl RustLibrary
impl RustLibrary
pub fn generate( config: &GlobalConfig, metadata: &PackageMetadata<'_>, crate_config: &CrateConfig, build_script: Option<&CargoBuildScript>, ) -> Result<Option<Self>, Error>
Trait Implementations§
source§impl Debug for RustLibrary
impl Debug for RustLibrary
source§impl RustTarget for RustLibrary
impl RustTarget for RustLibrary
source§impl ToBazelDefinition for RustLibrary
impl ToBazelDefinition for RustLibrary
Auto Trait Implementations§
impl Freeze for RustLibrary
impl !RefUnwindSafe for RustLibrary
impl !Send for RustLibrary
impl !Sync for RustLibrary
impl Unpin for RustLibrary
impl !UnwindSafe for RustLibrary
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