3 releases

0.1.2 Aug 13, 2023
0.1.1 Feb 7, 2023
0.1.0 Jan 11, 2023

#227 in Procedural macros

Download history 6522/week @ 2023-12-15 4302/week @ 2023-12-22 4560/week @ 2023-12-29 4688/week @ 2024-01-05 5319/week @ 2024-01-12 5012/week @ 2024-01-19 5087/week @ 2024-01-26 5076/week @ 2024-02-02 5681/week @ 2024-02-09 5849/week @ 2024-02-16 6448/week @ 2024-02-23 6900/week @ 2024-03-01 7028/week @ 2024-03-08 6094/week @ 2024-03-15 7195/week @ 2024-03-22 5858/week @ 2024-03-29

27,358 downloads per month
Used in 62 crates (3 directly)

MIT/Apache

14KB
163 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. We need it not only because of webkit2gtk, but also a lot of Desktop Environment features like menu bar, and tray icons. 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.

Dependencies

~1.5MB
~34K SLoC