Skip to content

emarifer/tauri-yew-demo

Repository files navigation

Tauri & Yew Demo App.

Desktop demo application developed with Tauri and Yew.rs.


Recommended IDE Setup

VS Code + Tauri + rust-analyzer.


As prerequisites, in addition to the Rust language and some OS-dependent libraries required for Tauri, you must also install the build target for browser-based WebAssembly called "wasm32-unknown-unknown" and the "Trunk" tool to the deployment and packaging of the Yew frontend:

rustup target add wasm32-unknown-unknown && cargo install --locked trunk

On the other hand, if we want to start from scratch, to create the scaffolding of the Tauri + Yew application it is necessary to install the Tauri app creation tool for the Cargo package manager and the Tauri CLI:

cargo install create-tauri-app && cargo install tauri-cli

Finally, since we use the Tailwind CSS framework, we will have to run in the root of the project:

npm i

With all this accomplished, run the app under development with the command:

cargo tauri dev

or build it with the command:

cargo tauri build

For more information see the documentation of Tauri and Yew.

About

Desktop demo application developed with Tauri and Yew.rs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published