pub struct BuildConfig {
pub project_dir: PathBuf,
pub release: bool,
pub lib_mode: bool,
pub target: Option<String>,
}Expand description
Configuration for a build operation.
Specifies the project location and build mode (debug/release).
§Example
use std::path::PathBuf;
use logicaffeine_cli::project::build::{BuildConfig, build};
let config = BuildConfig {
project_dir: PathBuf::from("my_project"),
release: false,
lib_mode: false,
target: None,
};
let result = build(config)?;
println!("Built: {}", result.binary_path.display());Fields§
§project_dir: PathBufRoot directory of the LOGOS project (contains Largo.toml).
release: boolIf true, build with optimizations (cargo build --release).
lib_mode: boolIf true, build as a library (cdylib) instead of a binary.
target: Option<String>Target triple for cross-compilation (e.g., “wasm32-unknown-unknown”). “wasm” is expanded to “wasm32-unknown-unknown”.
Auto 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