5 releases
| 0.0.5 | May 14, 2020 |
|---|---|
| 0.0.4 | May 14, 2020 |
| 0.0.3 | May 11, 2020 |
| 0.0.2 | May 11, 2020 |
| 0.0.1 | May 11, 2020 |
#2757 in GUI
27MB
527K
SLoC
AZUL - Desktop GUI framework
Azul is a free, functional, reactive GUI framework for Rust, C and C++, built using the WebRender rendering engine and a CSS / HTML-like document object model for rapid development of beautiful, native desktop applications
Website | Releases | User guide | API documentation
Current Status
Warning
This repository is currently under heavy development. Azul is NOT usable yet.
APIs may change frequently and features may be incomplete or unstable.
If you are looking for the old README, see README-OLD.md
The current release is from 2+ years ago, see the releases page.
Visit https://azul.rs/reftest in order to see the current testing and development of the core rendering / HTML layouting engine.
Using azul from Rust
azul is not on crates.io. azul.rs serves a static cargo registry with the
pre-rendered azul crate — the generated API lives inside the crate (so
rust-analyzer sees every type) and it links the prebuilt libazul that
brew / apt / dnf / choco / scoop install from the self-hosted
mirrors, or one you downloaded (AZ_LINK_PATH):
# .cargo/config.toml
[registries]
azul = { index = "sparse+https://azul.rs/ui/cargo/" }
cargo add azul --registry azul
The same crate is a download: https://azul.rs/ui/release/<version>/azul-rust-<version>.tar.gz
(cargo add azul --path azul-rust-<version>). Full instructions, every
platform: https://azul.rs/ui/guide/hello-world/rust
Building from source
cargo build -r -p azul-doc
./target/release/azul-doc codegen all # generates the API surface of every binding
cargo build -r -p azul-dll --features build-dll # libazul.{so,dylib,dll} in target/release
azul-doc is a multitool that generates all the code necessary for having a stable public API that works across multiple languages.
# a Rust app against the freshly built library, from the in-repo crate
export AZ_LINK_PATH=/path/to/azul/target/release
cargo add azul-dll --rename azul --path /path/to/azul/dll --no-default-features --features link-dynamic
cargo run --release
Dependencies
~18–25MB
~509K SLoC