pub struct BuildConfig {
pub source_url: String,
pub sha256: String,
pub name: String,
pub version: String,
pub prefix: PathBuf,
pub cellar: PathBuf,
pub build_deps: Vec<String>,
pub jobs: Option<usize>,
pub cc: Option<String>,
pub cxx: Option<String>,
}Expand description
Build configuration
Fields§
§source_url: StringSource archive URL
sha256: StringExpected SHA256 hash
name: StringFormula name
version: StringVersion
prefix: PathBufHomebrew prefix (e.g., /opt/homebrew)
cellar: PathBufCellar path (e.g., /opt/homebrew/Cellar)
build_deps: Vec<String>Build dependencies to ensure are installed
jobs: Option<usize>Number of parallel build jobs (default: auto-detect)
cc: Option<String>C compiler to use
cxx: Option<String>C++ compiler to use
Implementations§
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
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