tauri-project-setup
Initialize Tauri project with Rust backend and frontend framework integration. This skill sets up secure, lightweight desktop applications using web technologies.
Capabilities
- Initialize Tauri project structure
- Configure Rust backend with commands
- Integrate React, Vue, Svelte, or SolidJS
- Set up tauri.conf.json configuration
- Configure window settings
- Set up auto-update
- Configure build for all platforms
- Set up plugin system
Input Schema
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"projectName": { "type": "string" },
"frontend": { "enum": ["react", "vue", "svelte", "solid", "vanilla"] },
"features": { "type": "array" }
},
"required": ["projectPath", "projectName"]
}
Generated Structure
my-tauri-app/
├── src/ # Frontend
├── src-tauri/
│ ├── Cargo.toml
│ ├── tauri.conf.json
│ ├── src/
│ │ ├── main.rs
│ │ └── lib.rs
│ └── icons/
└── package.json
Rust Command Example
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error running app");
}
Related Skills
electron-builder-config
cross-platform-test-matrix
1---
2name: tauri-project-setup
3description: Initialize Tauri project with Rust backend and frontend framework integration
4allowed-tools: Read, Write, Edit, Bash, Glob, Grep
5tags: [tauri, rust, cross-platform, webview, desktop]
6graph:
7 domains: [domain:software-engineering]
8 specializations: [specialization:desktop-development]
9 skillAreas: [skill-area:desktop-ui-frameworks, skill-area:cross-platform-desktop]
10 roles: [role:desktop-developer, role:fullstack-engineer]
11 workflows: [workflow:feature-development, workflow:release-management]
12metadata:
13 source: https://skillmd.com/skills/a5c-ai/tauri-project-setup
14---
15
16# tauri-project-setup
17
18Initialize Tauri project with Rust backend and frontend framework integration. This skill sets up secure, lightweight desktop applications using web technologies.
19
20## Capabilities
21
22- Initialize Tauri project structure
23- Configure Rust backend with commands
24- Integrate React, Vue, Svelte, or SolidJS
25- Set up tauri.conf.json configuration
26- Configure window settings
27- Set up auto-update
28- Configure build for all platforms
29- Set up plugin system
30
31## Input Schema
32
33```json
34{
35 "type": "object",
36 "properties": {
37 "projectPath": { "type": "string" },
38 "projectName": { "type": "string" },
39 "frontend": { "enum": ["react", "vue", "svelte", "solid", "vanilla"] },
40 "features": { "type": "array" }
41 },
42 "required": ["projectPath", "projectName"]
43}
44```
45
46## Generated Structure
47
48```
49my-tauri-app/
50├── src/ # Frontend
51├── src-tauri/
52│ ├── Cargo.toml
53│ ├── tauri.conf.json
54│ ├── src/
55│ │ ├── main.rs
56│ │ └── lib.rs
57│ └── icons/
58└── package.json
59```
60
61## Rust Command Example
62
63```rust
64#[tauri::command]
65fn greet(name: &str) -> String {
66 format!("Hello, {}!", name)
67}
68
69fn main() {
70 tauri::Builder::default()
71 .invoke_handler(tauri::generate_handler![greet])
72 .run(tauri::generate_context!())
73 .expect("error running app");
74}
75```
76
77## Related Skills
78
79- `electron-builder-config`
80- `cross-platform-test-matrix`