pub struct RustLibrary {Show 14 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>>,
unit_test: Option<RustTest>,
doc_tests: Option<RustDocTest>,
}
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>>
§unit_test: Option<RustTest>
§doc_tests: Option<RustDocTest>
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