pub struct BuildConfig {
pub target: Target,
pub profile: BuildProfile,
pub incremental: bool,
}Expand description
Configuration for building mobile apps.
Controls the build process including target platform, optimization level, and caching behavior.
§Example
use mobench_sdk::{BuildConfig, BuildProfile, Target};
// Release build for Android
let config = BuildConfig {
target: Target::Android,
profile: BuildProfile::Release,
incremental: true,
};
// Debug build for iOS
let ios_config = BuildConfig {
target: Target::Ios,
profile: BuildProfile::Debug,
incremental: false, // Force rebuild
};Fields§
§target: TargetTarget platform to build for.
profile: BuildProfileBuild profile (debug or release).
incremental: boolIf true, skip rebuilding if artifacts already exist.
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