4 releases

0.1.3 Aug 21, 2024
0.1.2 Aug 13, 2023
0.1.1 Feb 7, 2023
0.1.0 Jan 11, 2023

#759 in Procedural macros

Download history 12203/week @ 2024-08-27 13599/week @ 2024-09-03 12784/week @ 2024-09-10 10542/week @ 2024-09-17 12847/week @ 2024-09-24 16047/week @ 2024-10-01 14301/week @ 2024-10-08 16751/week @ 2024-10-15 15907/week @ 2024-10-22 17510/week @ 2024-10-29 19164/week @ 2024-11-05 20840/week @ 2024-11-12 20894/week @ 2024-11-19 24206/week @ 2024-11-26 20726/week @ 2024-12-03 19286/week @ 2024-12-10

88,677 downloads per month
Used in 109 crates (3 directly)

MIT/Apache

15KB
168 lines

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

~220–660KB
~16K SLoC