This template should help get you started developing with Tauri, React and Typescript in Vite.
这是基于 Tauri + React + TypeScript 构建的桌面应用程序项目。
src-tauri/ # Tauri Rust 后端
├── src/
│ ├── main.rs # 主入口
│ ├── lib.rs # 业务逻辑
│ └── commands.rs # Tauri 命令
├── Cargo.toml # Rust 依赖管理
└── gen/ # 自动生成的代码
src/ # React 前端
├── main.tsx # React 入口
├── App.tsx # 主组件
├── components/ # UI 组件
└── services/ # API 服务
.env # 环境变量
## 运行开发服务器
### 前端
```bash
npm run dev
$env:Path = "$env:USERPROFILE\.cargo\bin;" + $env:Path; npm run tauri dev
$env:Path = "$env:USERPROFILE\.cargo\bin;" + $env:Path; npm run tauri build创建 .env 文件并添加以下变量:
CLAUDE_API_KEY=your_claude_api_key
ZHIPU_API_KEY=your_zhipu_api_key