Skip to content

Tauri and Leptos example.

License

Notifications You must be signed in to change notification settings

michalvavra/tauri-leptos-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

377fbcf · Mar 21, 2024

History

21 Commits
Nov 25, 2022
Oct 16, 2023
Mar 21, 2024
Nov 25, 2022
Nov 25, 2022
Mar 21, 2024
Sep 6, 2023
Nov 25, 2022
Dec 15, 2022
Nov 25, 2022
Nov 25, 2022

Repository files navigation

tauri-leptos-example

See Prerequisites section.

Requires Rust nightly. See Leptos nightly note.

# Build and develop for desktop
cargo tauri dev

# Build and release for desktop
cargo tauri build

Prerequisites

# Tauri CLI
cargo install --locked tauri-cli

# Rust nightly (required by Leptos)
rustup toolchain install nightly --allow-downgrade

# WASM target
rustup target add wasm32-unknown-unknown

# Trunk WASM bundler
cargo install --locked trunk

# `wasm-bindgen` for Apple M1 chips (required by Trunk)
cargo install --locked wasm-bindgen-cli

# `esbuild` as dependency of `tauri-sys` crate (used in UI)
npm install --global --save-exact esbuild

Credits

All credit for the counter example in ./src-ui/src/lib.rs goes to authors and contributors of gbj/leptos GitHub repository, MIT License, Copyright 2022 Greg Johnston.