Nuit
A declarative, cross-platform UI library for Rust that uses native controls.
Nuit's API takes inspiration from SwiftUI, Xilem, React and a number of other frameworks, while itself using SwiftUI under the hood on macOS.
[!NOTE] Nuit currently requires a nightly Rust toolchain as it uses a number of cutting edge/unstable compiler features, including
With
rustup
this can be configured conveniently on a per-directory basisrustup override set nightly
or, as in this repository, automatically with arust-toolchain.toml
.
Example
use ;
Running this example, e.g. with cargo run --example counter
, launches: