pub struct Bazel {
pub path: PathBuf,
pub mode: String,
pub wdir: Option<PathBuf>,
pub target: String,
pub options: Vec<OsString>,
}
Fields§
§path: PathBuf
§mode: String
§wdir: Option<PathBuf>
§target: String
§options: Vec<OsString>
Implementations§
Source§impl Bazel
impl Bazel
pub fn new( target: String, minimal_version: &str, maximal_version: &str, download_dir: &Path, download_version: Option<&str>, ) -> Result<Self>
pub fn with_work_dir<P: AsRef<Path>>(self, dir: P) -> Self
pub fn with_option(self, option: impl Into<OsString>) -> Self
pub fn with_options<I, S>(self, options: I) -> Self
pub fn build<I, S>(&self, targets: I) -> Command
pub fn run<I, S>(&self, targets: I) -> Command
pub fn cquery<S1: AsRef<OsStr>, S2: AsRef<str>>( &self, expr: S1, output: S2, ) -> Command
Auto Trait Implementations§
impl Freeze for Bazel
impl RefUnwindSafe for Bazel
impl Send for Bazel
impl Sync for Bazel
impl Unpin for Bazel
impl UnwindSafe for Bazel
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