pub struct RustLibrary {Show 14 fields
name: Field<QuotedString>,
version: Field<QuotedString>,
is_proc_macro: bool,
features: Field<List<QuotedString>>,
aliases: Field<CratesUniverseMacro<Aliases_>>,
lint_config: Field<QuotedString>,
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_>>§lint_config: Field<QuotedString>§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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more