Go to file
Matthias b9749b71d9
yarn upgrade (#542)
2020-04-01 10:28:15 +02:00
.github chore(workflow): order cargo publish and limit to 1 (#535) 2020-03-29 13:57:00 -03:00
.scripts feat(core) add cargo examples (#499) 2020-03-09 02:26:07 -04:00
cli yarn upgrade (#542) 2020-04-01 10:28:15 +02:00
tauri test(e2e) add FS API tests (#521) 2020-03-29 23:41:45 -03:00
tauri-api chore(tauri) bump versions to 0.5.0 (#532) version updates 2020-03-28 12:49:37 -03:00
tauri-updater chore(tauri) bump versions to 0.5.0 (#532) version updates 2020-03-28 12:49:37 -03:00
tauri-utils chore(tauri) bump versions to 0.5.0 (#532) version updates 2020-03-28 12:49:37 -03:00
.editorconfig feat(icons): add and test icon generation for tauri (#55) 2019-11-17 22:30:14 +01:00
.gitignore Fix(All) - Add Edge support to GUIJS (#452) 2020-02-23 18:15:57 -05:00
Cargo.toml Refactor(Updater) Modernize Updater Crate and add Utils Crate (#335) 2020-01-17 19:33:17 -05:00
LICENSE feat(npm): add needed items for npq 2019-12-03 20:06:59 +01:00
README.md chore: update readme with new rust packages (#529) [version updates] 2020-03-27 23:08:49 -05:00
SECURITY.md fix(info) update security info 2019-08-30 16:30:20 +02:00
app-icon.png Feat/new logo (#429) 2020-02-15 20:58:36 +01:00
clippy.toml Adding Clippy/Rust Fmt to the pr workflow #333 (#367) 2020-02-08 14:18:09 -03:00
renovate.json chore(renovate): remove example upgrading (#418) 2020-02-10 15:25:48 -06:00
rust-toolchain Chore: update Rust to 1.41.0 (#395) 2020-02-05 20:18:47 -05:00
rustfmt.toml Adding Clippy/Rust Fmt to the pr workflow #333 (#367) 2020-02-08 14:18:09 -03:00

README.md

tauri

A fresh take on creating cross-platform apps.

status Chat Server devto

test library devto

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

Tauri is a tool for building tiny, blazing fast binaries for all major desktop platforms. You can use any front-end framework that compiles to HTML,JS and CSS for building your interface.

Component Version Lin Win Mac
tauri.js CLI
tauri core
tauri bundler
tauri api
tauri updater
tauri utils

Who Tauri is For

Because of the way Tauri has been built and can be extended, developers are able to interface not only with the entire Rust ecosystem, but also with many other programming languages. Being freed of the heaviest thing in the universe and the many shortcomings of server-side Javascript suddenly opens up whole new avenues for high-performance, security-focused applications that need the purebred power, agility and community acceptance of a low-level language.

We expect to witness an entire new class of applications being built with Tauri. From a simple calender to locally crunching massive realtime feeds at particle colliders or even mesh-network based distributed message- passing ecosystems - the bar has been raised and gauntlet thrown.

What will you make?

4 Reasons to consider Tauri

  • BUNDLE SIZE of a vanilla Tauri app is less than 3 MB - about 140 MB smaller than what you get with Electron.
  • MEMORY FOOTPRINT is less than half of the size of an Electron app built from the same codebase.
  • SECURITY is Tauri's biggest priority and we are constantly innovating.
  • FLOSS licensing is regretfully impossible with downstream Chromium consumers, like Electron. Sources: 0 1 2

Technical Details

Tauri has five major components:

  • Node.js CLI for creating, developing and building apps
  • Rust Core for binding to the low level WEBVIEW and providing a tree-shakeable API
  • Rust Bundler for manufacturing the final binaries
  • Rust Bindings for Webviews
  • Webview Low level library for creating and interfacing with OS "native" webviews

The user interface in Tauri apps currently leverages Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) or Webkit via Edge on Windows. Tauri is based on the MIT licensed prior work known as webview.

The default binding to the underlying webview library currently uses Rust, but other languages like Golang or Python (and many others) are possible (and only a PR away).

The combination of power, safety and usability are why we chose Rust to be the default binding for Tauri. It is our intention to provide the most safe and performant native app experience (for devs and app consumers), out of the box.

App Bundles

  • App Icons
  • Build on MacOS (.app, .dmg coming soon)
  • Build on Linux (.deb, AppImage coming soon)
  • Build on Windows (.exe, .msi coming soon)
  • App Signing
  • Self Updater (WIP)
  • Frameless Mode
  • Transparent Mode
  • Multiwindow Mode
  • Tray (coming soon)
  • Copy Buffer

API

  • bridge - enable fast bridge
  • event - enable binding to message
  • execute - STDOUT Passthrough with Command Invocation
  • listFiles - list files in a directory
  • open - open link in a browser
  • readBinaryFile - read binary file from local filesystem
  • readTextFile - read text file from local filesystem
  • setTitle - set the window title
  • writeFile - write file to local filesystem
  • API Spec
  • Documentation (WIP)

Security Features

  • localhost-free mode (🔥)
  • Dynamic ahead of Time Compilation (dAoT) with functional tree-shaking
  • functional Address Space Layout Randomization
  • OTP salting of function names and messages at runtime
  • CSP Injection
  • Frida-based harness for Post-Binary Analysis

Comparison between Tauri and Electron

Tauri Electron
Binary Size MacOS 0.6 MB 47.7 MB
Memory Consumption MacOS 13 MB 34.1 MB
Interface Service Provider Varies Chromium
Backend Binding Rust Node.js (ECMAScript)
Underlying Engine C/C++ V8 (C/C++)
FLOSS Yes No
Multithreading Yes No
Bytecode Delivery Yes No
Can Render PDF Yes No
Multiple Windows Soon Yes
GPU Access Yes Yes
Auto Updater Soon Yes (1)
Cross Platform Yes Yes
Custom App Icon Yes Yes
Windows Binary Yes Yes
MacOS Binary Yes Yes
Linux Binary Yes Yes
iOS Binary Soon No
Android Binary Soon No
Localhost Server Yes Yes
No localhost option Yes No
Desktop Tray Soon No

Notes

  1. Electron has no native auto updater on Linux, but is offered by electron-packager

Organization

Tauri aims to be a sustainable collective based on principles that guide sustainable free and open software communities. You can get involved in many ways.

This has been done with our best attempt at due diligence and in respect of the original authors. Thankyou - this project would never have been possible without your amazing contribution to open-source and we are honoured to carry the torch further. Of special note:

  • zserge for the original webview approach and go bindings
  • Boscop for the Rust Bindings
  • Burtonago for the Cargo Bundle prototype

Contributing

Please make sure to read the Contributing Guide before making a pull request.

Thank you to all the people who already contributed to Tauri!

Special thanks to the development team at Volentix Labs for the encouragement and support in the early phases of Tauri, notably Rhys Parry and Gregory Luneau. Also a warm thanks to the incubation period at the Quasar Framework and specifically Razvan Stoenescu for believing in Tauri from the beginning.

Semver

tauri is following Semantic Versioning 2.0.

Licenses

Code: (c) 2015 - present - Daniel Thompson-Yvetot, Lucas Nogueira, Tensor, Boscop, Serge Zaitsev, George Burton and all the other amazing contributors.

MIT or MIT/Apache where applicable.

Logo: CC-BY-NC-ND