pub struct BuildConfig {
pub project_dir: PathBuf,
pub app_name: String,
pub bin_name: Option<String>,
pub target: Option<String>,
pub profile: Profile,
pub dist_dir: Option<PathBuf>,
pub cargo_args: Vec<String>,
pub reproducible: bool,
pub workspace_root_override: Option<PathBuf>,
}Expand description
Input settings for guest compilation and dist packaging.
Fields§
§project_dir: PathBufProject root containing Cargo.toml.
app_name: StringOutput app folder name inside the dist root.
bin_name: Option<String>Override for the binary name.
target: Option<String>Override for the target triple.
profile: ProfileBuild profile used for artifact extraction.
dist_dir: Option<PathBuf>Output root directory for dist/ artifacts.
cargo_args: Vec<String>Additional arguments forwarded to cargo build and cargo objcopy.
reproducible: boolWhen true, compilation runs inside a pinned Docker container for bit-for-bit reproducible output across host environments.
workspace_root_override: Option<PathBuf>Overrides the directory bind-mounted as /src inside the reproducible
build container. Only needed when the guest has path dependencies that
point outside its own cargo workspace root (e.g. in-tree monorepos where
the guest shares crates with the host via path = "../../..").
Has no effect unless reproducible is also true.
Implementations§
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more