pub struct Config {Show 31 fields
pub dir: PathBuf,
pub app_id: String,
pub bundle_id: String,
pub version: String,
pub name: BTreeMap<String, String>,
pub icon: Option<String>,
pub platform_icons: BTreeMap<String, String>,
pub alternate_icons: BTreeMap<String, BTreeMap<String, String>>,
pub publisher: Option<String>,
pub files_folder: bool,
pub background_audio: bool,
pub overlays: bool,
pub languages: Vec<String>,
pub default_language: String,
pub strict: bool,
pub theme_mode: ThemeMode,
pub brand_seed: Option<Srgb>,
pub protocol_package: Package,
pub protocol_source: SourceFile,
pub engine_package: Package,
pub engine_type: String,
pub ui_package: Package,
pub ui_sources: Vec<SourceFile>,
pub root: String,
pub targets: Vec<TargetConfig>,
pub libraries: Vec<PathBuf>,
pub modules: Vec<ModuleConfig>,
pub build_modules: Modules,
pub contributes: BTreeMap<String, Vec<String>>,
pub resources: Vec<ResourceDef>,
pub layouts: Option<LayoutConfig>,
}Fields§
§dir: PathBuf§app_id: String§bundle_id: String§version: String§name: BTreeMap<String, String>§icon: Option<String>[app].icon, or default in [app.icon]: a checked square PNG
relative to dir.
platform_icons: BTreeMap<String, String>The other entries of [app.icon]: platform name to a checked square
PNG, or a file or folder in the platform’s own form, relative to dir.
alternate_icons: BTreeMap<String, BTreeMap<String, String>>[app.alternate_icons.<name>]: name to its checked entries, as
[app.icon] has them, with default for every platform.
publisher: Option<String>[app].publisher, trimmed; None when absent or blank.
files_folder: bool[app].files_folder.
background_audio: bool[app].background_audio.
overlays: bool[app].overlays.
languages: Vec<String>§default_language: String§strict: bool§theme_mode: ThemeMode§brand_seed: Option<Srgb>§protocol_package: Package§protocol_source: SourceFile§engine_package: Package§engine_type: String§ui_package: Package§ui_sources: Vec<SourceFile>§root: String§targets: Vec<TargetConfig>§libraries: Vec<PathBuf>Manifests of component libraries the UI uses.
modules: Vec<ModuleConfig>The application’s modules, in the order Bern.toml lists them.
build_modules: ModulesDeclared modules and whether this build includes them.
contributes: BTreeMap<String, Vec<String>>Slot id to the application’s own components placed there, before the modules’.
resources: Vec<ResourceDef>Files shipped with the application, directories expanded, sorted by name.
layouts: Option<LayoutConfig>Breakpoints from [layouts], if declared.