Cross-platform application window creation library in Rust that supports all major platforms like Windows, macOS, Linux, iOS and Android. Built for you, maintained for Tauri.
Tao provides the following features, which can be enabled in your
serde: Enables serialization/deserialization of certain types with Serde.
tray: Enables system tray and more menu item variants on Linux. This feature requires either
libappindicatorpackage installed. You can still create those types if you disable it. They just don't create the actual objects. We set this flag because some implementations require more installed packages.
This library makes use of the ndk-rs crates, refer to that repo for more documentation.
Running on an Android device needs a dynamic system library, add this to Cargo.toml:
And add this to the example file to add the native activity glue:
And run the application with
cargo apk run --example request_redraw_threaded
Gtk and its related libraries are used to build the support of Linux. Be sure to install following packages before building:
Arch Linux / Manjaro:
Debian / Ubuntu:
tray feature, choose one of following pachages:
To ensure compatibility with older MacOS systems, tao links to
CGDisplayCreateUUIDFromDisplayID through the CoreGraphics framework.
However, under certain setups this function is only available to be linked
through the newer ColorSync framework. So, tao provides the
TAO_LINK_COLORSYNC environment variable which can be set to
while compiling to enable linking via ColorSync.
This is a fork of winit which replaces Linux's port to Gtk. We need it not only because of webkit2gtk, but also a lot of Desktop Environment features like menu bar, system tray, global shortcuts etc. In the future, we want to make these features more modular as separate crates. So we can switch back to winit and also benefit the whole community.