Files
proxycast/src-tauri
lwmacct 76d623f85b fix: 消除跨平台编译警告
修复 macOS 和 Linux 平台上的 Rust 编译警告,实现零警告编译。

主要更改:
- 在 lib.rs 添加全局 #![allow(unexpected_cfgs)] 抑制 objc 宏的 cfg 警告
- 修复 runner.rs 中 macOS 特定的 Emitter/Listener trait 导入
- 修复 capture.rs 中 warn 宏的条件导入
- 修复 window.rs 和 update_window.rs 中的变量命名和 lint 属性
- 修复 provider_pool_cmd.rs 中的 home 变量命名

技术细节:
- 使用 #[cfg(target_os = "macos")] 条件导入平台特定模块
- 使用 #[cfg_attr] 条件属性抑制非目标平台的未使用变量警告
- 在 crate 根级别抑制外部依赖(cocoa/objc)的内部警告

验证:
- macOS: cargo check --no-default-features 零警告
- Linux: cargo check --no-default-features 零警告
2026-01-11 21:03:37 +08:00
..
2026-01-11 21:03:37 +08:00
2026-01-11 16:49:43 +08:00
2026-01-07 10:14:33 +08:00
2026-01-11 14:11:29 +08:00
2026-01-11 16:49:43 +08:00