pub struct TargetConfig {
pub name: String,
pub platform: String,
pub ui: Option<String>,
pub web_mode: Option<String>,
pub web_extension: Option<WebExtension>,
pub channels: Vec<String>,
pub frontends: Vec<String>,
pub separate_packages: bool,
pub webview: Option<bool>,
pub javascript: bool,
pub android: Option<AndroidOptions>,
pub abis: Vec<String>,
}Expand description
Target settings from [targets.<name>] in Bern.toml.
Fields§
§name: String§platform: String§ui: Option<String>§web_mode: Option<String>Web build mode: app (engine in the page) or ui (separate engine).
web_extension: Option<WebExtension>Browser extension entry and optional build command (receives the output directory).
channels: Vec<String>§frontends: Vec<String>Front ends to build: on Windows from WINDOWS_FRONTENDS, both
unless the target names fewer; on iOS from IOS_FRONTENDS, the
first unless the target names more. Empty for other platforms.
separate_packages: booliOS with both front ends: one .ipa for each instead of one for all.
webview: Option<bool>Override the target’s web document capability. False removes all WebView dependencies and compiles SVGs into static pictures.
javascript: boolAssemble the portable JavaScript host (off unless requested).
android: Option<AndroidOptions>Explicit Android host capabilities; absent on other platforms.
abis: Vec<String>The Android ABIs a release is built for, one APK each; empty for the 64-bit ARM alone, and for other platforms.