pub struct LibraryConfig {
common: CommonConfig,
features_override: Option<Vec<String>>,
extra_deps: Vec<String>,
extra_proc_macro_deps: Vec<String>,
disable_pipelining: Option<bool>,
}
Expand description
Extra configuration for a RustLibrary
target.
Fields§
§common: CommonConfig
§features_override: Option<Vec<String>>
By default Bazel enables all features of a crate. If this field is set we’ll override that behavior and only set the specified features.
extra_deps: Vec<String>
Extra dependencies to include.
extra_proc_macro_deps: Vec<String>
Extra proc macro dependencies to include.
disable_pipelining: Option<bool>
Should we disable pipelined compilation for this library.
Implementations§
Source§impl LibraryConfig
impl LibraryConfig
pub fn common(&self) -> &CommonConfig
pub fn features_override(&self) -> Option<&Vec<String>>
pub fn extra_deps(&self) -> &[String]
pub fn extra_proc_macro_deps(&self) -> &[String]
pub fn disable_pipelining(&self) -> Option<bool>
Trait Implementations§
Source§impl Debug for LibraryConfig
impl Debug for LibraryConfig
Source§impl Default for LibraryConfig
impl Default for LibraryConfig
Source§fn default() -> LibraryConfig
fn default() -> LibraryConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryConfig
impl<'de> Deserialize<'de> for LibraryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LibraryConfig
impl RefUnwindSafe for LibraryConfig
impl Send for LibraryConfig
impl Sync for LibraryConfig
impl Unpin for LibraryConfig
impl UnwindSafe for LibraryConfig
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