mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-10-13 09:26:28 +08:00
修复 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 零警告