# tauri_actix_test **Repository Path**: snakyhy/tauri_actix_test ## Basic Information - **Project Name**: tauri_actix_test - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-01 - **Last Updated**: 2025-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tauri Actix 测试 这是一个结合了 Tauri 和 Actix Web 的简单测试项目,演示了如何在 Tauri 应用中集成 Actix Web 服务器,并实现基本的 HTTP 服务功能。 ## 特性 - 使用 Tauri 构建桌面应用 - 集成 Actix Web 作为本地 HTTP 服务 - 实现简单的计数器功能 - 支持跨域请求 (CORS) - 提供问候接口 ## 安装 确保你已经安装了 [Rust](https://www.rust-lang.org) 和 [Tauri CLI](https://tauri.app/v1/guides/getting-started/setup). ```bash npm install ``` ## 使用 ### 启动开发服务器 ```bash npm run tauri dev ``` ### 构建生产版本 ```bash npm run tauri build ``` ## 接口 - `GET /` - 获取当前计数 - `GET /update-counter` - 更新计数并返回新的值 - `GET /greet/{name}` - 向指定名称发送问候 ## 技术栈 - Rust - Tauri - Actix Web - HTML/CSS/JS (前端部分) ## 贡献 欢迎提交代码贡献!请确保提交拉取请求前运行 `npm run tauri build` 以验证所有功能正常。