52 releases (17 breaking)

0.18.1 Feb 20, 2023
0.17.0 Jan 26, 2023
0.15.8 Dec 16, 2022
0.15.6 Nov 21, 2022
0.4.0 Jul 14, 2021

#35 in GUI

Download history 11945/week @ 2022-11-28 15785/week @ 2022-12-05 15752/week @ 2022-12-12 14447/week @ 2022-12-19 10668/week @ 2022-12-26 13475/week @ 2023-01-02 15437/week @ 2023-01-09 12712/week @ 2023-01-16 13740/week @ 2023-01-23 14860/week @ 2023-01-30 13602/week @ 2023-02-06 15851/week @ 2023-02-13 14032/week @ 2023-02-20 13801/week @ 2023-02-27 17210/week @ 2023-03-06 14653/week @ 2023-03-13

61,633 downloads per month
Used in 49 crates (10 directly)


28K SLoC

TAO - Window Creation Library

License Chat Server website https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg support

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.

Cargo Features

TAO provides the following features, which can be enabled in your Cargo.toml file:

  • serde: Enables serialization/deserialization of certain types with Serde.
  • tray: Enables system tray and more menu item variants on Linux. This feature requires either libayatana-appindicator or libappindicator package 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.

Platform-specific notes


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:

name = "request_redraw_threaded"
crate-type = ["cdylib"]

And add this to the example file to add the native activity glue:

#[cfg_attr(target_os = "android", ndk_glue::main(backtrace = "on"))]
fn main() {

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:

sudo pacman -S gtk3

For tray feature:

sudo pacman -S libappindicator-gtk3

Debian / Ubuntu:

sudo apt install libgtk-3-dev

For tray feature, choose one of following packages:

sudo apt install libappindicator3-dev
sudo apt install libayatana-appindicator3-dev


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 1 or true 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.


~1M SLoC