๐Ÿ“ฆ tauri-apps / tao

The TAO of cross-platform windowing. A library in Rust built for Tauri.

โ˜… 2.0k stars โ‘‚ 266 forks ๐Ÿ‘ 2.0k watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/tauri-apps/tao.git
HTTPS git clone https://github.com/tauri-apps/tao.git
SSH git clone git@github.com:tauri-apps/tao.git
CLI gh repo clone tauri-apps/tao
sftse sftse Remove lazy static dependency (#1174) b55f576 34 minutes ago ๐Ÿ“ History
๐Ÿ“‚ dev View all commits โ†’
๐Ÿ“ .changes
๐Ÿ“ .github
๐Ÿ“ audits
๐Ÿ“ examples
๐Ÿ“ src
๐Ÿ“ tao-macros
๐Ÿ“ tests
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitmodules
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE
๐Ÿ“„ LICENSE.spdx
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ rustfmt.toml
๐Ÿ“„ README.md
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.