#window-manager #window-creation #cross-platform #windowing #applications #tauri-app #android

tao

Cross-platform window manager library

96 releases (30 breaking)

new 0.31.0 Dec 8, 2024
0.30.8 Nov 11, 2024
0.30.5 Oct 29, 2024
0.28.1 Jun 12, 2024
0.4.0 Jul 14, 2021

#20 in GUI

Download history 45974/week @ 2024-08-24 54673/week @ 2024-08-31 45869/week @ 2024-09-07 43054/week @ 2024-09-14 45378/week @ 2024-09-21 50808/week @ 2024-09-28 50388/week @ 2024-10-05 51206/week @ 2024-10-12 47447/week @ 2024-10-19 51282/week @ 2024-10-26 52093/week @ 2024-11-02 51764/week @ 2024-11-09 55394/week @ 2024-11-16 51375/week @ 2024-11-23 57183/week @ 2024-11-30 53492/week @ 2024-12-07

225,538 downloads per month
Used in 121 crates (36 directly)

Apache-2.0

2.5MB
25K 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.

Platform-specific notes

Android

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:

[[example]]
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

Linux

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

Debian / Ubuntu:

sudo apt install libgtk-3-dev

Acknowledgement

This is a fork of winit which replaces Linux's port to Gtk. 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.

Partners

CrabNebula

For the complete list of sponsors please visit our website and Open Collective.

Dependencies

~3–49MB
~745K SLoC