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 webview: Option<bool>,
pub javascript: bool,
pub android: Option<AndroidOptions>,
}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>Windows front ends to build, from WINDOWS_FRONTENDS; both unless
the target names fewer. Empty for other platforms.
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.
Implementations§
Source§impl TargetConfig
impl TargetConfig
pub fn has_webview(&self) -> bool
pub fn javascript_backend(&self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§impl Debug for TargetConfig
impl Debug for TargetConfig
Auto Trait Implementations§
impl Freeze for TargetConfig
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnsafeUnpin for TargetConfig
impl UnwindSafe for TargetConfig
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