Skip to content

Commit f3f70c2

Browse files
author
richardson
committed
feat: 添加 Tauri 应用程序的基础配置和启动逻辑
- 设置 Windows 子系统配置 - 添加必要的模块导入 - 配置 Tauri 构建器和应用状态管理 - 集成日志系统 - 注册命令处理函数 - 添加开发工具支持
1 parent b8f5f55 commit f3f70c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src-tauri/src/main.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ mod http_client;
1212
use crate::logger::setup_logging;
1313
use crate::device_manager::DeviceManager;
1414
use std::sync::Arc;
15-
use tauri::Manager;
1615

1716
#[tokio::main]
1817
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -25,11 +24,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2524

2625
tauri::Builder::default()
2726
.manage(app_state)
28-
.setup(|app| {
27+
.setup(|_app| {
2928
setup_logging().expect("Failed to setup logging");
3029
#[cfg(debug_assertions)]
3130
{
32-
let window = app.get_window("main").unwrap();
31+
let window = _app.get_window("main").unwrap();
3332
window.open_devtools();
3433
}
3534
Ok(())

0 commit comments

Comments
 (0)