pub struct ApplicationConfiguration {
pub path: PathBuf,
pub target: String,
pub release: bool,
pub hmi: Option<HmiConfig>,
pub ipc: Option<SharedMemConfig>,
pub dbg: Option<DbgConfig>,
pub sysroot: Option<PathBuf>,
}Expand description
Build parameters for a Linux application (typically targeting a Yocto A-core).
§Environment variables (in priority order)
Cross-compiler detection:
CC / CXX: explicit cross-compiler (any Yocto flavor)
Fallback: generic Rust linker
Sysroot:
SDKTARGETSYSROOT > OECORE_TARGET_SYSROOT
Rustup overrides:
CONSORTIUM_RUSTC, CONSORTIUM_CARGO
HMI (when hmi is Some):
CONSORTIUM_HMI_DIST: absolute path to the compiled frontend dist directory
CONSORTIUM_HMI_DEBUG_URL: dev-server URL (only injected when present)
Fields§
§path: PathBufPath to the Cargo project root.
target: StringRust target triple (e.g. "aarch64-unknown-linux-gnu").
release: boolBuild in release mode.
hmi: Option<HmiConfig>Optional HMI config. dist must be an absolute path (resolved by the
caller from the manifest directory before constructing this struct).
ipc: Option<SharedMemConfig>IPC shared-memory layout, injected as CONSORTIUM_IPC_* env vars.
dbg: Option<DbgConfig>Debug ring layout, injected as CONSORTIUM_DBG_* env vars.
sysroot: Option<PathBuf>Target sysroot from [profile] sysroot, resolved to an absolute path.
Takes priority over the SDKTARGETSYSROOT / OECORE_TARGET_SYSROOT
environment variables when present.
Trait Implementations§
Source§impl Clone for ApplicationConfiguration
impl Clone for ApplicationConfiguration
Source§fn clone(&self) -> ApplicationConfiguration
fn clone(&self) -> ApplicationConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more