pub struct Builder {
pub name: String,
pub force_rebuild: bool,
pub env: Vec<(String, String)>,
pub features: Vec<String>,
pub target: Option<String>,
pub output_dir: Option<PathBuf>,
pub cargo_args: Vec<String>,
pub manifest_path: Option<PathBuf>,
pub user_crate_name: Option<String>,
}Fields§
§name: String§force_rebuild: bool§env: Vec<(String, String)>§features: Vec<String>§target: Option<String>§output_dir: Option<PathBuf>§cargo_args: Vec<String>§manifest_path: Option<PathBuf>§user_crate_name: Option<String>调用Bindeps的crate名,用于测试
Implementations§
Source§impl Builder
impl Builder
pub fn new(name: &str) -> Self
pub fn env(self, key: &str, value: &str) -> Self
pub fn feature(self, feature: &str) -> Self
pub fn cargo_args<T: AsRef<str>>(self, args: &[T]) -> Self
pub fn cargo_arg<T: AsRef<str>>(self, arg: T) -> Self
pub fn target(self, target: &str) -> Self
pub fn build(self) -> Result<Output>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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