pub struct RustBinary {Show 13 fields
name: Field<QuotedString>,
version: Field<QuotedString>,
crate_root: Field<QuotedString>,
features: Field<List<QuotedString>>,
lint_config: Field<QuotedString>,
aliases: Field<CratesUniverseMacro<Aliases_>>,
deps: Field<List<QuotedString>>,
proc_macro_deps: Field<List<QuotedString>>,
data: Field<List<QuotedString>>,
compile_data: Field<List<QuotedString>>,
env: Field<Dict<QuotedString, QuotedString>>,
rustc_flags: Field<List<QuotedString>>,
rustc_env: Field<Dict<QuotedString, QuotedString>>,
}
Expand description
Fields§
§name: Field<QuotedString>
§version: Field<QuotedString>
§crate_root: Field<QuotedString>
§features: Field<List<QuotedString>>
§lint_config: Field<QuotedString>
§aliases: Field<CratesUniverseMacro<Aliases_>>
§deps: Field<List<QuotedString>>
§proc_macro_deps: Field<List<QuotedString>>
§data: Field<List<QuotedString>>
§compile_data: Field<List<QuotedString>>
§env: Field<Dict<QuotedString, QuotedString>>
§rustc_flags: Field<List<QuotedString>>
§rustc_env: Field<Dict<QuotedString, QuotedString>>
Implementations§
Source§impl RustBinary
impl RustBinary
pub fn generate( config: &GlobalConfig, metadata: &PackageMetadata<'_>, crate_config: &CrateConfig, target: &BuildTarget<'_>, ) -> Result<Option<Self>, Error>
Trait Implementations§
Source§impl Debug for RustBinary
impl Debug for RustBinary
Source§impl RustTarget for RustBinary
impl RustTarget for RustBinary
Source§impl ToBazelDefinition for RustBinary
impl ToBazelDefinition for RustBinary
Auto Trait Implementations§
impl Freeze for RustBinary
impl !RefUnwindSafe for RustBinary
impl !Send for RustBinary
impl !Sync for RustBinary
impl Unpin for RustBinary
impl !UnwindSafe for RustBinary
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