
Prerequisites
Before you start, make sure you:- Install the Turso CLI
- Sign up or login to Turso
- Have a Tauri app — learn more
1
Add the following crates to the Tauri project's dependencies
src-tauri/Cargo.toml
2
Fetch Rust dependencies inside the `src-tauri` directory.
3
Configure database credentials
Get the database URL.Get the database authentication token.Assign acquired credentials to the environment variables inside
src-tauri/.env
.src-tauri/.env
4
Execute SQL
src-tauri/src/main.rs