pub struct BuildScript { /* private fields */ }Implementations§
Source§impl BuildScript
impl BuildScript
pub fn new() -> Self
pub fn locked(self, v: bool) -> Self
pub fn cargo_bundle_licenses(self, v: bool) -> Self
pub fn needs_bindgen(self, v: bool) -> Self
pub fn has_native_deps(self, v: bool) -> Self
pub fn workspace_path(self, path: &str) -> Self
pub fn force_build_sh(self, v: bool) -> Self
pub fn cargo_net_git_fetch(self, v: bool) -> Self
pub fn strip_binaries(self, v: bool) -> Self
pub fn binaries(self, names: Vec<String>) -> Self
Sourcepub fn needs_build_sh(&self) -> bool
pub fn needs_build_sh(&self) -> bool
Whether this recipe needs a separate build.sh (vs inline script:).
Sourcepub fn inline_script(&self) -> String
pub fn inline_script(&self) -> String
Generate inline script content (for simple recipes).
Sourcepub fn to_build_sh(&self) -> String
pub fn to_build_sh(&self) -> String
Generate build.sh content (for complex recipes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildScript
impl RefUnwindSafe for BuildScript
impl Send for BuildScript
impl Sync for BuildScript
impl Unpin for BuildScript
impl UnsafeUnpin for BuildScript
impl UnwindSafe for BuildScript
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