A cross-platform native UI framework for Rust.
Write both your app logic and declarative ui! views in Rust — no embedded browser, no hand-written platform glue.
At build time, Bern compiles one Rust codebase into SwiftUI, WinUI 3, GTK 4, Jetpack Compose, GPUI and Web DOM/WASM
across desktop, mobile, tablet, watch, TV and the Web.
A typed protocol and command architecture keeps business logic in plain Rust, catches omissions at compile time, ships an app CLI + SKILL.md out of the box, and lets you bern eject into standalone FFI-wired native IDE projects anytime.
Website · Online docs · Why Bern · How to build in Rust · Built for AI · Eject & FFI · Measured · Comparison · Quick start
![]() macOS · SwiftUI |
![]() Windows · WinUI 3 |
![]() Linux · GTK 4 + libadwaita |
![]() Web · DOM + WebAssembly |
![]() iOS · SwiftUI |
![]() Android · Jetpack Compose |
![]() Desktop · GPUI ( ui = "gpui" with co-located NativeView) |
More form factors: iPad, Android Tablet, Apple TV, Android TV, iPhone Duo, watchOS & Wear OS
![]() iPad · iPadOS SwiftUI |
![]() Android Tablet · Jetpack Compose |
![]() Apple TV · tvOS SwiftUI |
![]() Android TV · Jetpack Compose |
![]() iPhone Duo · SwiftUI |
![]() watchOS · SwiftUI |
![]() Wear OS · Compose Material 3 |
One Rust codebase across desktop, mobile, tablet, TV, watch and Web. On system targets Bern draws no pixels of its own;
when you want unified GPU rendering, switch to ui = "gpui" without rewriting your app.
With Bern, you stay in Rust from data model to native release bundle — no hand-written Swift, C++, or Kotlin glue unless you explicitly drop into a platform-specific NativeView. To avoid the classic Rust GUI headaches (callbacks fighting the borrow checker, UI threads tangled with async I/O, per-platform build plumbing), every Bern app is cleanly split into three layers:
flowchart LR
subgraph app["Your application (100% Rust)"]
P["Protocol<br/>types · state · commands"]
U["UI declarations<br/>#[component] + ui!"]
E["Engine<br/>plain Rust"]
end
P --> C{{"bern build<br/>compiler + IR"}}
U --> C
C --> S["SwiftUI<br/>macOS · iOS · watchOS · tvOS"]
C --> W["WinUI 3 / Islands<br/>Windows"]
C --> G["GTK 4<br/>Linux"]
C --> A["Jetpack Compose<br/>Android · Wear OS"]
C --> P2["GPUI<br/>macOS · Windows · Linux"]
C --> B["DOM + WASM<br/>Web"]
E <--> K[["Command catalog"]]
K <--> N["Native UI"]
K <--> L["App CLI"]
K <--> JS["JS · bern.cli"]
K <--> J["JSON channel"]
K --> SK["SKILL.md"]
- Protocol —
#[bern::protocol]declares value types, the read-only state snapshot, and the command and query traits. - Engine — ordinary Rust that implements those traits. It never sees a window, widget, or transport, so you freely use
tokio,reqwest,rusqlite, or any Rust crate and unit-test it with plaincargo test. - Interface —
#[component]functions written withui!right inside.rsfiles. Views read state and dispatch typed commands; the compiler lowers them into a shared IR and generates each platform's own native UI code, linked directly to your Rust engine.
Running bern new tasks scaffolds a standard Cargo workspace with Bern.toml declaring languages, theme, bundled resources, and target platforms:
tasks/
├── Bern.toml # App metadata, languages, resources & targets
├── tasks-protocol/ # 1. Shared contract: values, read-only state & commands
├── tasks-core/ # 2. Business engine: plain Rust, zero UI dependency
└── tasks-ui/ # 3. Declarative UI: #[component] + ui! + tr!
1 · Protocol (tasks-protocol/src/lib.rs): value types, read-only state, and typed commands
#[bern::protocol(namespace = "tasks", version = 1)] pub mod tasks { use bern::prelude::*; #[value] pub struct Task { pub id: i64, #[content] pub title: String, pub done: bool, } #[state] pub struct State { pub items: Vec<Task>, pub remaining: i64, } #[commands] pub trait Commands { /// Add a task and return its id. #[errors("empty_title")] fn add(&mut self, title: String) -> Result<i64, CommandError>; /// Toggle a task's completion state. fn toggle(&mut self, id: i64) -> Result<(), CommandError>; } }
2 · Engine (tasks-core/src/lib.rs): plain Rust business logic, zero UI coupling
use bern::CommandError; use tasks_protocol::tasks::{self, State, Task}; pub struct TasksEngine { state: State, next_id: i64, } impl Default for TasksEngine { fn default() -> Self { Self { state: State { items: Vec::new(), remaining: 0 }, next_id: 0 } } } impl tasks::Commands for TasksEngine { fn add(&mut self, title: String) -> Result<i64, CommandError> { if title.trim().is_empty() { return Err(CommandError::new("empty_title", "title cannot be empty")); } self.next_id += 1; self.state.items.push(Task { id: self.next_id, title, done: false }); self.state.remaining += 1; Ok(self.next_id) } fn toggle(&mut self, id: i64) -> Result<(), CommandError> { if let Some(task) = self.state.items.iter_mut().find(|t| t.id == id) { task.done = !task.done; self.state.remaining += if task.done { -1 } else { 1 }; } Ok(()) } } impl tasks::Engine for TasksEngine { fn state(&self) -> &State { &self.state } }
3 · Interface (tasks-ui/src/lib.rs): declarative ui! in Rust with local drafts and inline localization
#[bern::session] pub struct Draft { pub title: String, pub only_open: bool, } #[component] pub fn tasks_view(app: tasks::Client, #[session] draft: Draft) -> impl View { ui! { Form { Section(title: tr! { "zh-Hans" => "待办(剩余 {n} 项)", "en" => "Tasks ({n} left)"; n: app.remaining }) { Row(gap: 8) { TextInput( id: new_task, label: tr! { "zh-Hans" => "新任务", "en" => "New task" }, value: draft.title, prompt: tr! { "zh-Hans" => "写点要做的事…", "en" => "Add a task…" }, submit: clear ) => app.add(draft.title) Button( id: add, label: tr! { "zh-Hans" => "添加", "en" => "Add" }, prominence: prominent, clears: draft.title ) => app.add(draft.title) } Switch( id: only_open, label: tr! { "zh-Hans" => "只看未完成", "en" => "Only open" }, value: draft.only_open ) ForEach(items: app.items, key: id) |task| { if !draft.only_open || !task.done { Switch( id: done, label: task.title, checked: task.done, style: checkbox ) => app.toggle(task.id) } } } } } }
One bern tool drives the entire lifecycle — compile-time verification, native execution across devices, release packaging, and the generated app CLI:
bern check # verify types, translations and layout coverage bern run # run native UI on this OS (SwiftUI / WinUI 3 / GTK 4) bern run --target web_app # or Android, iOS, GPUI, Web from the same Rust code bern package # build release .dmg / installer / .deb / .apk / .ipa / Web bern eject --target macos # export standalone native IDE project with Rust FFI wired up # Because every UI action is a protocol command, the built app also ships its own CLI: tasks ui inspect tasks tasks add --title "Ship v1.0"
For full multi-page apps in this repository, see showcase (all controls, engine-backed async search, list-to-detail navigation, video, and a settings window with close confirmation), planner (modular app, style overrides, spring motion and Canvas), gallery (poster wall, proportional timeline, four-tier adaptive layouts and file drop), native-controls (co-located per-platform NativeView), wearos (watch targets), and svg-animation (pure-Rust animated SVG).
Because every UI view is statically checked at compile time and every interaction flows through the command catalog, Bern naturally makes AI coding and AI automation reliable instead of guesswork.
AI rarely gets interface code wrong; it leaves things out. A feature is added without an entry in the compact layout, a new string is written in one language only, a callback sidesteps the commands. Elsewhere these wait for a user to find them; in Bern they do not compile. The stricter the rules, the harder it is for an AI to hand over half a job:
Errors are written for people and for agents alike: a code, a reason and a location, so an agent can fix them and build again on its own. Two real runs on the showcase: the first with an English translation deleted, the second, after restoring it, with the compact layout's "Change Clip" menu removed:
$ bern check
error[B102]: Missing translation
Missing language: en
Required languages: zh-Hans, en
--> showcase-ui/src/pages.rs:13:31
$ bern check
error[B201]: Feature missing in adaptive layout
Contract: MediaFeature
Feature: Clip
compact: missing
--> showcase-ui/src/media.rs:14:5
Every build also writes a full feature coverage report per target (features.json) that lists what is covered, exempt or only manually guaranteed.
With the control channel enabled, Bern generates SKILL.md from the app’s command catalog. In the example below, the agent looks up ui set-bool and its arguments in skills/showcase/SKILL.md, then runs showcase ui inspect to find the switch’s target. It operates the switch by that name through the CLI, using the same code as a click, without a screenshot or coordinates.
$ showcase ui inspect # the agent reads meaning, not pixels [{ "target": "controls_page.sync", "role": "switch", "label": "Sync", "value": "false", "enabled": true, … }, …] $ showcase ui set-bool --target controls_page.sync --value true $ showcase window screenshot --output shot.png $ showcase window close --window settings#1 { "outcome": "ConfirmationRequired", "message": "Do you want to save the display name?", "decisions": ["Save", "Discard", "Cancel"], "confirmation": "settings#1:c1", … } $ showcase window confirm-close --window settings#1 --confirmation settings#1:c1 --decision Save { "outcome": "Rejected", "reason": "save_failed: invalid_name: a display name has 1 to 40 characters …" }
You can run the same commands yourself, including app-specific ones such as showcase showcase set-display-name --name Demo or built-in window screenshots (window screenshot). Use the CLI from the same build as the app. Over SSH, run it on the machine hosting the control channel, under the account that owns the endpoint. If a control is disabled, blocked by a dialog or missing, the CLI returns an error code.
How it was measured
- Subject: the release showcase (6 pages, a main and a settings window, a video player), measured on 2026-10-11, median of at least 3 runs.
- macOS: Apple M4, 16 GB, macOS 27.0.1. Memory is the physical footprint from
footprint, the measure of Activity Monitor's Memory column. - Windows: Intel Core i5-13490F, 32 GB, Windows 11 25H2. Memory is the private working set, the measure of Task Manager's Memory column.
- Launch time: from starting the process until the command line sees a visible native window, including engine start and the local control channel.
- The Windows numbers are the WinUI 3 front end (measured with Windows App Runtime 1.8; builds now use 2.x). Without the runtime, the same program falls back to the system XAML: 0.54 s, 19 MB. Neither needs .NET or the VC++ runtime; the app folder holds the executable and a 400 KB bootstrapper DLL.
And more: full standard controls, automatic skeletons, style and motion, media, system integration, modular apps, NativeView and opt-in JS…
- Adaptive layouts & navigation: four-tier size classes (
compact,medium,expanded,large) pluswatchandtv; typed push navigation,SplitViewsidebars,TabswithTabAccessory, toolbars, menus,Grid(including masonry),Stack,SplitPane,Accordionand compile-time feature contracts. - Full standard controls:
Table,TreeView,Reorderable,BottomSheet,Refreshable,DatePicker,TimePicker,NumberInput,ColorPicker,ShortcutInput,Tooltip,Banner,Disclosure,Alert,EmptyState,Badge,Avatar,Text(selectable:)/ inline Markdown, dynamic searchablePicker(style: combobox), multi-filepick:and nativesave:dialogs. - Automatic skeletons, style & motion: compile-time projected skeletons on
Queryandskeleton: <bool>containers (120 ms anti-flicker, staggered entrance, reduced-motion aware);style!app-wide overrides, spring motion, shared-element Hero transitions, pure-Rust animatedSvg(zero WebView), HDRImage,Canvasdrawing and proportionalRails. - Media, async queries & files:
Videoon native media stacks or a customMediaKernel, directplayers.<id>.<field>bindings,Querysubscriptions (loading, empty, failure, refresh), bundled resources inBern.toml, unifiedMediaSourceacross local paths / Androidcontent:/// Webblob:, system file open handlers ([[app.opens]]) and in-memorybern::files::serve. - Desktop & system integration: system tray
StatusItem(monochrome SVG icons + launch at login), macOSMenuBar, floating overlay utility windows, built-inwindow.screenshot, pointer events (DoubleTap,ContextMenu,WheelUp/WheelDown),Slider(hover:)and embeddedWebPage. - Extensibility: modular apps (
bern new --module), co-located per-platform native views (NativeViewwith typed props,tr!linting, mandatory CLI entries andFallback, see Native Views), and opt-in in-process JavaScript withbern.cliand allowlist/denylist policies (JavaScript).
Because Bern compiles your ui! declarations into each platform's own UI code, you are never locked into the framework. Run bern eject at any time to export standard, self-contained native IDE projects with UI sources split cleanly per component and window (Do not edit banners removed), leaving the original Bern project untouched.
It also works as an instant native-to-Rust FFI project generator: even if you plan to hand-write SwiftUI, Kotlin Compose, WinUI 3 C++, GTK, or Web UI from day one, bern new + bern eject gives you a ready-to-build project across every platform with the Rust engine, C ABI / FFI bridge, state snapshot bindings, and native IDE build hooks already wired up — no manual Xcode Run Script, NDK/JNI, MSBuild, or WASM plumbing.
bern eject --target macos --out ./native-macos # offline Rust source + Xcode project bern eject --target ios --engine prebuilt --release --out ./ios # prebuilt XCFramework, no Rust required # Example ejected macOS layout (similarly Gradle / Visual Studio .sln / Cargo / Web ES modules): # native-macos/ # ├── MyApp.xcodeproj/ # wired with Build Rust Engine phase (or XCFramework) # ├── Sources/{App,Models,Styles,Views,Windows,Native,Runtime}/ # └── rust/ # offline self-contained Rust workspace + C FFI bridge
| Platform | Standalone native project | Pre-wired Rust FFI (--engine source / --engine prebuilt) |
|---|---|---|
| macOS / iOS / tvOS / watchOS | <Product>.xcodeproj + .xcscheme |
rust/ + Xcode build-rust.sh / BernEngine.xcframework |
| Android / Wear OS | Gradle project (app/build.gradle.kts) |
rust/ + Gradle NDK task / jniLibs/<abi>/libbern_app.so |
| Windows (WinUI 3 / Islands) | Visual Studio .sln + .vcxproj |
rust/ + MSBuild build-rust.cmd / lib\<arch>\bern_app.lib |
| Linux (GTK 4) | Standalone Cargo workspace | Self-contained Cargo.toml (--engine source) |
| Desktop (GPUI) | Standalone Cargo workspace | Self-contained Cargo.toml (--engine source) |
| Web (DOM + WASM) | Zero-bundler index.html + ES modules |
rust/ + build-wasm.{sh,cmd} / prebuilt app.wasm |
Choose --engine source (default; works cross-host for every target) to keep editing Rust alongside native UI, or --engine prebuilt to embed compiled engine binaries so native developers can open and build with no Rust or Bern installed. See Ejecting to standalone native projects.
Apps that do not enable scripting link zero JS runtime. When a target sets javascript = true, every bern::script::Context (in-process Boa on native targets, Web Worker on the Web) exposes globalThis.bern.cli(...) directly against the app's command catalog, with host-side allowlist/denylist control (CliPolicy::allow_all() by default):
let js = bern::script::Context::with_policy( bern::script::CliPolicy::allow_only(["media.*", "@queries", "state", "catalog"]) .deny("media.bind") .with_label("example.plugin"), )?; js.eval(r#"await bern.cli("media seek --player-id main --position-ms 90000")"#).await?;
See JavaScript and target capabilities for the full call forms, policy patterns and dynamic filters.
Platform guides: macOS · iOS · watchOS · tvOS · Windows · Linux · Android & Wear OS · GPUI · Web & WebUI.
Omitting the UI technology picks the platform default; an unavailable default fails loudly instead of silently switching to another stack.
GPUI gives Rust apps fast GPU rendering, but ships without a standard control library. Setting ui = "gpui" on macOS, Windows or Linux lets you use Bern directly as a declarative UI framework on top of GPUI: your ui! declarations get full desktop controls, semantic light/dark theming, spring motion, compile-time i18n and feature checks, and Skills + CLI out of the box. When a view needs bespoke GPU rendering, embed native GPUI code beside the declaration with NativeView(gpui: "...")—and switch back to native system controls or expand to iOS, Android, watchOS, Wear OS and the Web without rewriting your app logic.
These two platforms span more system versions than one UI framework reaches, so the same declaration generates two front ends for each. By default both go into one package and the app chooses as it starts, by the system it finds. Neither the user nor the app's code has to do anything.
| Platform | Front end | Name in frontends |
Runs on |
|---|---|---|---|
| Windows | WinUI 3 | winui3 |
Systems with Windows App Runtime 2, with Mica and the Windows 11 look |
| Windows | The system XAML, through XAML Islands | xaml-islands |
Every other Windows 10 and 11, with no runtime to install |
| iOS | SwiftUI | swiftui |
iOS 17 and later; every Apple target shares this front end |
| iOS | SwiftUI for iOS 16 | swiftui-16 |
iOS 16, rewritten from the same generated code |
To keep only one, name it:
[targets.windows] frontends = ["winui3"] # asks to install the runtime on a system without it [targets.ios] frontends = ["swiftui"] # iOS 17 and later
With both iOS front ends, packages = "separate" makes one .ipa of each. The Windows and iOS platform guides cover the selection rules and what is reduced on iOS 16.
Every framework answers the same question: how does one codebase become the interface on each platform? The answers differ, and so do the trade-offs. What follows is based on each project's official documentation; size and memory vary a lot with versions and settings, so the comparison stays structural. Bern's own numbers are in Measured.
The first two routes give you system controls: look, accessibility, input methods and dark mode come from the system, at the cost of controls that differ a little between platforms. The other two draw the same interface everywhere, at the cost of keeping up with each platform's design and behavior yourself, or of shipping a browser.
The chart is a sketch by architecture, not a ranking: the horizontal axis is whether UI elements are the system's controls or drawn by the framework or a web page; the vertical axis is how much runtime the app carries (a browser engine, a JS engine, a rendering engine, a language runtime).
- Mobile: iOS / iPadOS and Android (plus watchOS, Wear OS, tvOS and Android TV). React Native's desktop versions are maintained by Microsoft; uni-app also covers mini programs and HarmonyOS; Bern has been tested on real hardware across all of its desktop, mobile, tablet, watch and TV targets and packages
.ipaand.apkbundles. - Native look: the controls are the platform's own, with look, accessibility and input methods from the system. Qt Widgets and uni-app x come close and count as partly.
- Skills + CLI: Bern generates the app CLI and its
SKILL.mdfrom one command catalog. People and agents use the same commands. Other frameworks can be automated from outside through accessibility APIs or test tools such as Playwright and Flutter Driver. - Compile-time checks: a missing translation, a feature without an entry in some layout, or an entry not registered to a feature is a compiler error (see Built for AI). Other frameworks mostly find these with linters, translation tools or tests.
- Maturity: Electron and Qt are very mature; Flutter, React Native, uni-app, Tauri and Avalonia are mature; Dioxus is developing quickly; GPUI powers the Zed editor while its general-purpose components are early; Bern is an early preview.
The languages of the UI and logic layers, and how they run, set the ceiling of runtime overhead: natively compiled languages without garbage collection cost the least; JIT-run and interpreted languages ship an engine and use more memory.
For the same window showing one line of text, package size, launch time and memory differ widely. The chart is measured on one CI virtual machine (a GitHub-hosted Apple M1): each framework's own tools build a release package, and the apps take turns starting, ten times each, median shown. The scripts are in benchmarks/; the Benchmarks workflow reruns them from the Actions tab.
You need Rust 1.99 (rustup installs it from rust-toolchain.toml) plus the toolchain of the target you build. First install the build tool bern:
cargo binstall bern-cli
cargo-binstall downloads bern ready-built from the releases, where you can also download it yourself; cargo install bern-cli compiles it instead. The apps this bern creates take Bern of the same version from crates.io. To work on Bern itself, install bern from a clone of this repository with cargo install --path crates/bern-cli; the apps it creates take Bern from that clone.
In any directory:
bern new my_app
cd my_app
bern runThe new app is a window with a counter, with one crate each for the protocol, the engine and the interface, and all six targets declared in Bern.toml. bern run builds the target for this computer and starts it: SwiftUI on macOS, WinUI 3 on Windows, GTK on Linux; bern run --target web_app opens it in the browser, bern run --target ios installs it in the running iOS simulator, and bern run --target android installs it on the Android phone connected with USB debugging (or an emulator) and starts it. For a target with channels = ["ipc"], look for the app CLI in target/bern/<target>/bin/ and its SKILL.md under the adjacent skills/ directory.
bern doctor lists what this computer still needs for each target, and how to install it:
$ bern doctor
bern 0.2.2 on macOS (aarch64)
[✓] Rust: rustc 1.99.0, cargo 1.99.0
[✓] macOS · SwiftUI: macOS SDK 26.5, Swift 6.3.2
[✓] iOS · SwiftUI: iOS simulator SDK 26.5, the aarch64-apple-ios-sim target
[-] Windows · WinUI 3: builds on Windows
[-] Linux · GTK 4: builds on Linux
[✓] Android · Compose: Android SDK, NDK 29.0.14206865, gradle-9.5.1, the aarch64-linux-android target
[✓] Web · WebAssembly: the wasm32-unknown-unknown target
What each platform needs
- macOS: Xcode 26 or later. After installing it from the App Store, run
sudo xcode-select --switch /Applications/Xcode.app. - iOS / iPadOS / tvOS / watchOS: Xcode's Apple platform SDKs, plus the corresponding Rust targets (
aarch64-apple-ios/aarch64-apple-ios-sim,aarch64-apple-tvos/aarch64-apple-tvos-sim,aarch64-apple-watchos/aarch64-apple-watchos-sim).bern runlaunches in the simulator andbern packagebuilds.ipabundles for real devices. - Windows: Visual Studio 2022 or later with “Desktop development with C++” (the Build Tools are enough) and a Windows 11 SDK; Rust on the MSVC toolchain. The first build generates the C++/WinRT headers with the Windows SDK's
cppwinrtand precompiles them with the runtime (about 2.4 GB per profile, undertarget); later builds compile only the app's own code, about 5 s for a new app and 9 s for the showcase. The app folder holds only the executable, a 400 KB bootstrapper DLL and the resources: no .NET, no bundled Windows App SDK. - Linux: GTK 4.14 and libadwaita 1.5 development packages, for example
sudo apt install libgtk-4-dev libadwaita-1-dev libsoup-3.0-dev gstreamer1.0-libav. - Android: Android Studio with the SDK and the NDK (SDK Manager → SDK Tools → NDK), Gradle 9.4 or newer, and
rustup target add aarch64-linux-android. The first build has Gradle download the Android plugin and the Compose libraries. - Web:
rustup target add wasm32-unknown-unknown. Aweb_appbuild compiles the engine to WebAssembly and runs it in the page; aweb_uibuild makes the page the UI of a separate engine host, whichbern runstarts before opening its address.
bern package
Builds every target this computer can in release and writes packages to target/bern/dist/: a .dmg for macOS, an installer (per user, no administrator rights) and a .zip for Windows, a .deb and a .tar.gz for Linux, an .apk and an .aab for stores for Android, and an archive of the static site for the Web. Desktop and WebUI packages carry the app CLI and, when IPC is enabled, its skill. A static Web package contains only the site; the Android CLI runs on the development computer, not inside the APK. Signing comes from the environment, so certificates stay out of the repository: BERN_MACOS_SIGNING_IDENTITY and BERN_MACOS_NOTARY_PROFILE (sign and notarize), BERN_WINDOWS_CERTIFICATE (a certificate thumbprint or a .pfx), BERN_ANDROID_KEYSTORE, BERN_ANDROID_KEYSTORE_PASSWORD and BERN_ANDROID_KEY_ALIAS (the release key). Without them the packages are still made, with a note on what being unsigned means. To export standalone native IDE projects with Rust FFI wired up instead, run bern eject (see Eject to standalone native projects).
The showcase in the Bern repository uses every component, two windows and a video player. From the repository directory:
cd examples/showcase
bern runshowcase ui inspect # every mounted control showcase ui select --target main_window.pages --option Controls showcase ui set-bool --target controls_page.sync --value true showcase showcase search-library --text mo # an engine query showcase window open --kind settings showcase window list # actual window state showcase window screenshot --output shot.png # capture window PNG ssh HOST /path/to/showcase state
The target setting channels = ["ipc"] enables external control. On Android, run the CLI on the development computer where bern run set up adb forward, not on the phone. For a standalone Web app with IPC enabled, bern run starts a local bridge to the open browser tab; the static site archive does not include the local CLI or its SKILL.md.
Crates and directories
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspaceTests include declarations that must fail to compile, and type-check the generated apps where the toolkit is installed: Swift 6 with Xcode, GTK with its development packages, both generated front ends with MSVC on Windows. Android's Kotlin is compiled by Gradle in bern build --target android.
Browse the searchable docs online at bern.aimes-soft.com/docs, or read them in this repository:
- Guides: Quick start · Protocol & engine · Layouts & navigation · Localization & styling · Windows, resources & files · App CLI & Skills
- Platforms: macOS · iOS · watchOS · tvOS · Windows · Linux · Android & Wear OS · GPUI · Web & WebUI
- Topics: Ejecting to native projects · Co-located native views · JavaScript &
bern.cli· Animated SVG · Module builds · Web extensions - Reference & Architecture: Documentation index · Architecture overview · Component guide · Property table · Platform capabilities · Performance tracing
The documentation is also available in Simplified Chinese (online).
MIT © 2026 MCDFSteve
Bern is in early development. APIs and the declaration syntax may still change.
















