Simple
Don’t overcomplicate your project structure if you’re just making something basic. This simple project structure follows what you get from a standard Tauri template.
Small projects without a lot of complexity or projects where the Tauri part of the project is kept small, focusing code on the frontend either because Rust skills are limited or because the project is a web app and native functionality isn’t required beyond what Tauri plugins provide.
Bold: Part of your source code, add to Git
Italic: Build time artifacts, make sure to gitignore
- .github/: GitHub specific files and folders
- workflows/: GitHub Actions workflows
- build.yaml: Builds your project for release and deploys it
- test.yaml: Runs your test suite on every commit to a PR branch
- CODEOWNERS: Required reviewers when updates are made to files/folders
- workflows/: GitHub Actions workflows
- dist/: The finished built SSG/CSR frontend of your project
- src/: The source code for your frontend project, preferably configure it to not “pollute” outside this folder to keep things “clean”
- src-tauri/:
- icons/: Icons built by
- target/: Build folder for Rust
- Cargo.toml: Your Rust project metadata, e.g. dependencies
- tauri.conf.json: Tauri configuration
- .gitignore: Ignore files, e.g. the target and dist directories
- package.json: Some project metadata, e.g. dependencies
- README.md: Introduction to the project, mainly used as a front page for e.g. GitHub, NPM, documentation etc