pub struct BuildConfig {
pub project_dir: PathBuf,
pub release: bool,
}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,
};
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).
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