pub enum BuildType {
Autotools,
CMake,
Meson,
Cargo,
Make,
Custom,
}Expand description
Supported build system types.
Variants§
Autotools
GNU Autotools (./configure && make)
CMake
CMake
Meson
Meson + Ninja
Cargo
Rust / Cargo
Make
Plain Makefile
Custom
Custom build steps only
Implementations§
Source§impl BuildType
impl BuildType
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse a build type from a string (case-insensitive match).
Sourcepub fn configure_command(&self) -> &'static str
pub fn configure_command(&self) -> &'static str
Return the conventional configure command for this build type.
Sourcepub fn build_command(&self) -> &'static str
pub fn build_command(&self) -> &'static str
Return the conventional build command for this build type.
Sourcepub fn install_command(&self) -> &'static str
pub fn install_command(&self) -> &'static str
Return the conventional install command for this build type.
Trait Implementations§
impl Copy for BuildType
impl Eq for BuildType
impl StructuralPartialEq for BuildType
Auto Trait Implementations§
impl Freeze for BuildType
impl RefUnwindSafe for BuildType
impl Send for BuildType
impl Sync for BuildType
impl Unpin for BuildType
impl UnwindSafe for BuildType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)