FerroUI
Avalonia UI ported to Rust with XAML and data binding
Replaces —
Who it's for
A developer who has built .NET desktop applications with Avalonia or WPF can transfer existing knowledge of the property system, data binding, XAML markup, and control themes directly to FerroUI without relearning the foundational model.
A team building a desktop tool that must ship on macOS, Windows, and Linux can use FerroUI to target all three from a single codebase with native-quality text rendering, platform input methods, accessibility, and OS-native controls like file dialogs and tray icons.
If the application targets only one platform and native toolkit bindings are acceptable.
FerroUI ships ProTranslate for native translation bindings, live culture switching, RTL support, calendars, and 13 translation file formats, making it suited for applications that need runtime locale changes without a restart.
The release includes ports of ReactiveUI, DynamicData, and their control integrations as first-party crates (`ferroui-reactiveui-controls`), providing a full MVVM stack for Rust applications that follow the reactive programming model common in .NET UI development.
If the application does not use or need reactive/MVVM patterns.
The problem
Building native-quality graphical applications in Rust requires either binding to platform-specific toolkits, accepting limited control over rendering, or rebuilding foundational UI primitives from scratch. Developers familiar with Avalonia or WPF have no idiomatic Rust path that preserves the same property system, data binding model, XAML workflow, and control set they already know.
How it works
Styled and direct properties with value priorities, inheritance, coercion, and change notification; logical and visual trees; routed events; layout; and input, focus, and gesture handling, with the upstream Avalonia test suites ported.
A port of the XamlX compiler front end compiles markup documents to Rust source in the crate's build script. A runtime loader with the upstream test suites is also included. Hot reload is available through `ferroui-view`.
Skia renders through Graphite on Metal, Ganesh on OpenGL, ANGLE, WebGL, and Vulkan, or in software. An experimental Vello backend sits behind the same contracts. HarfBuzz shapes text, and platform-specific text rendering settings such as ClearType contrast on Windows and greyscale antialiasing on high-density displays are respected.
Fluent, Simple, WinUI 3 (with Mica and acrylic on Windows), Android Material 3 Expressive with HCT dynamic palettes and spring motion, and macOS 26 are included for every control in the set.
`ferroui-view` writes interfaces without XAML using builders generated for every control, an `rsx!` macro, fine-grained signals, and React-style components with hooks and a reconciler. Hot reload, an inspector, and interoperation with XAML are supported.
A visual XAML designer built on the framework itself: an artboard with synchronized XAML, editable properties, layout tools, preview stages, prototype flows, and keyframe animation. The designer crates are published as of version 0.5.0 and can be run with `cargo run -p designer-studio`.
Features
- Complete object model
- XAML markup compilation
- Swappable rendering backends
- Five control themes
- Declarative Rust UI
- Designer Studio
How to install
[dependencies] ferroui-base = "=0.5.0" ferroui-controls = "=0.5.0" ferroui-desktop = "=0.5.0" ferroui-themes-fluent = "=0.5.0"
Recommended for this setup
Strengths
- Broad platform coverage from one codebase: The same application code targets macOS, Windows, Linux X11, Wayland, the Linux framebuffer, iOS, Android, and the browser via WebAssembly. Platform-specific features such as OLE drag-and-drop on Windows, AT-SPI accessibility on Linux, and Metal rendering on Apple platforms are handled per-platform without changing application code.
- Safe Rust in the application-facing layers: The controls, markup, XAML, and theme crates contain no `unsafe` code. Unsafe code is confined to a small portion of the object model core and to the rendering, text shaping, platform, and interop backends, so application code stays in safe Rust.
- Familiar model for Avalonia and WPF developers: FerroUI is a faithful port of Avalonia's architecture and contracts. Applications, themes, and markup written against that model carry over with their structure intact, reducing the conceptual distance for developers already comfortable with the Avalonia or WPF programming model.
- Comprehensive porting coverage: Of the upstream members in scope, 30,354 are present and 5,856 are waived with a recorded reason; the port has 81 percent of the members of every upstream project in and out of scope. Per-subsystem state is tracked in CRITICAL-PATH.md and per-member state in TRACKING.md.
Trade-offs
- Pre-1.0 public API: Within a 0.x minor version the public API is kept, but 0.6.0 may change it. Projects that need API stability should pin to an exact version and expect migration work at each minor bump.
- First build is slow: The first build downloads a prebuilt Skia for the target, or builds it from source where no prebuilt binary matches (Vulkan on Windows), and builds HarfBuzz from source with a C++ compiler. Subsequent builds are incremental, but initial setup time is significant.
- Some features verified only in emulators and CI: Platform coverage has gaps in real-device testing. iOS has no signed device build; Android testing used only the emulator; screen readers, real-device acrylic and Mica, and the Linux framebuffer on actual hardware are unverified as of 0.5.0.
- XAML workflow may feel foreign to Rust-first developers: The framework is designed around Avalonia's XAML and property-system model. Developers expecting idiomatic Rust patterns throughout will need to learn the Avalonia programming model; the declarative `ferroui-view` API is an alternative but is an additional crate to integrate.
Tech stack
FAQ
FerroUI requires Rust 1.89 or later for all platforms except the browser, which requires Rust 1.93 or later due to WebAssembly target requirements.
FerroUI is a port of the Avalonia UI framework from .NET to Rust. It preserves the original architecture, contracts, and behaviour so that applications, themes, and markup written against Avalonia's model carry over with their structure intact. It is not a binding or wrapper around Avalonia; it is a Rust reimplementation.
Skia is the default and reference renderer, drawing through Graphite on Metal, Ganesh on OpenGL, ANGLE, WebGL, and Vulkan, or in software. An experimental Vello backend is also available behind the same contracts. HarfBuzz shapes text across all backends.
Yes. The `ferroui-view` crate provides builders generated for every control, an `rsx!` macro, fine-grained signals, and React-style components with hooks and a reconciler. It supports hot reload and can interoperate with XAML-defined parts of the same application.
Add the crates you need to `[dependencies]` with a pinned version, for example `ferroui-base = "=0.5.0"`, `ferroui-controls = "=0.5.0"`, `ferroui-desktop = "=0.5.0"`, and a theme crate. Alternatively, use the facade crate `ferroui` which re-exports common crates under short names and selects platforms and features through Cargo features.