diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index bf63e4b30..4c5d7e23a 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -1,13 +1,4 @@ #![cfg_attr(all(not(dev), target_os = "windows"), windows_subsystem = "windows")] -// AGC 壳的 warning 门禁只作用于「生产口径 + Windows 交付平台」: -// - `cfg(not(test))`:`cargo check`(不带 `--all-targets`)与发布构建把 first-party warning 当错误;test harness -// 实例不受影响——同一个 bin target 在 `--all-targets` 下会被编第二次,其中 `#[cfg(not(test))] fn main()` -// 被排除,`generate_handler!`/`desktop::run()` 链不可达,会产生一批属测试构建产物的假死告警。 -// - `cfg(windows)`:本壳交付面是 WebView2 / Windows;在 Linux 上大量 Windows 专用实现会被整块编掉 -// (acl_repair、Windows 策略路径、编辑器 RPC、process session bridge 等),它们留下的未用项是“编译剔除” -// 的产物而不是废弃生产代码,不能当缺陷处理(本仓 CI 不在外部注入 RUSTFLAGS/-D warnings)。 -// 口径与基线见 dev 运维文档「Rust 编译告警门禁」。 -#![cfg_attr(all(not(test), windows), deny(warnings))] #[cfg(test)] #[path = "../build_support/godot_bundle.rs"] diff --git a/apps/desktop-shell/src-tauri/Cargo.toml b/apps/desktop-shell/src-tauri/Cargo.toml index dd48d43a7..d1877effa 100644 --- a/apps/desktop-shell/src-tauri/Cargo.toml +++ b/apps/desktop-shell/src-tauri/Cargo.toml @@ -19,6 +19,3 @@ tauri-plugin-notification = "2.3.3" tauri-plugin-opener = "2.5.4" tauri-plugin-single-instance = { version = "2.4.2", features = ["deep-link"] } tauri-plugin-window-state = "2.4.1" - -[lints.rust] -warnings = "deny" diff --git a/plugins/agc-cocos-editor/native/cocos-editor-bridge/Cargo.toml b/plugins/agc-cocos-editor/native/cocos-editor-bridge/Cargo.toml index fccb803f1..6532971e0 100644 --- a/plugins/agc-cocos-editor/native/cocos-editor-bridge/Cargo.toml +++ b/plugins/agc-cocos-editor/native/cocos-editor-bridge/Cargo.toml @@ -56,6 +56,3 @@ tungstenite = { version = "0.28", optional = true, default-features = false, fea [build-dependencies] cc = "1" - -[lints.rust] -warnings = "deny" diff --git a/plugins/agc-godot-editor/native/godot-editor-bridge/Cargo.toml b/plugins/agc-godot-editor/native/godot-editor-bridge/Cargo.toml index b5a07fe47..293f77ecc 100644 --- a/plugins/agc-godot-editor/native/godot-editor-bridge/Cargo.toml +++ b/plugins/agc-godot-editor/native/godot-editor-bridge/Cargo.toml @@ -17,6 +17,3 @@ tempfile = "3" windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp", "Win32_System_ProcessStatus", "Win32_UI_WindowsAndMessaging", "Win32_UI_Shell", "Win32_System_Memory"] } [workspace] - -[lints.rust] -warnings = "deny" diff --git a/plugins/agc-godot-editor/native/godot-editor-bridge/src/files.rs b/plugins/agc-godot-editor/native/godot-editor-bridge/src/files.rs index 2a4b98807..0cc8e5a53 100644 --- a/plugins/agc-godot-editor/native/godot-editor-bridge/src/files.rs +++ b/plugins/agc-godot-editor/native/godot-editor-bridge/src/files.rs @@ -343,11 +343,6 @@ pub fn verify_dll_hash(path: &Path, expected: &str) -> Result<(), String> { } /// Godot 4.7 的 Windows 编辑器 loader 只允许在同目录派生 ~ 前缀副本。 -/// -/// 库内只有 Windows 编辑器探测路径会调用它(`platform.rs` 的 `#[cfg(windows)]` 分支); -/// 另由跨平台单测 `official_loader_copy_requires_exact_parent_and_trusted_bytes` 直接覆盖, -/// 因此非 Windows 的库构建不编译它,避免 Linux 目标把它判成 dead code。 -#[cfg(any(windows, test))] pub fn verified_module_path(actual: &Path, descriptor: &Descriptor) -> Result { let key = |p: &Path| { p.to_string_lossy() diff --git a/plugins/agc-unity-editor/native/unity-editor-bridge/Cargo.toml b/plugins/agc-unity-editor/native/unity-editor-bridge/Cargo.toml index 001a17037..26de230ac 100644 --- a/plugins/agc-unity-editor/native/unity-editor-bridge/Cargo.toml +++ b/plugins/agc-unity-editor/native/unity-editor-bridge/Cargo.toml @@ -24,6 +24,3 @@ windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Securit tempfile = "3" [workspace] - -[lints.rust] -warnings = "deny" diff --git a/plugins/agc-unity-editor/native/unity-editor-bridge/tests/protocol.rs b/plugins/agc-unity-editor/native/unity-editor-bridge/tests/protocol.rs index c01b29c10..fa377d786 100644 --- a/plugins/agc-unity-editor/native/unity-editor-bridge/tests/protocol.rs +++ b/plugins/agc-unity-editor/native/unity-editor-bridge/tests/protocol.rs @@ -1,9 +1,7 @@ -#[cfg(all(windows, target_arch = "x86_64"))] use editor_adapter_api::EditorAdapter; use serde_json::json; use std::path::PathBuf; use std::time::{Duration, Instant}; -#[cfg(all(windows, target_arch = "x86_64"))] use unity_editor_bridge::{ configure_helper_candidates, disconnect_unity_editor, execute_unity_editor_code_for_project, UnityEditorAdapter, @@ -27,7 +25,6 @@ fn fixture() -> (tempfile::TempDir, PathBuf) { (directory, executable) } -#[cfg(all(windows, target_arch = "x86_64"))] fn project() -> tempfile::TempDir { let directory = tempfile::tempdir().unwrap(); for path in ["Assets", "Packages", "ProjectSettings"] { diff --git a/server-rs/Cargo.toml b/server-rs/Cargo.toml index 2049c83b0..33df718b3 100644 --- a/server-rs/Cargo.toml +++ b/server-rs/Cargo.toml @@ -42,11 +42,6 @@ members = [ "crates/tests-support", ] -# 门禁:workspace 内已清零 warning 的成员 crate 一律不许再引入。 -# 只影响被构建 crate 的 rustc 参数(--deny=warnings),不改 RUSTFLAGS,CI 编译缓存不受影响。 -[workspace.lints.rust] -warnings = "deny" - [workspace.package] edition = "2024" version = "0.1.0" diff --git a/server-rs/crates/agent-runtime-core/Cargo.toml b/server-rs/crates/agent-runtime-core/Cargo.toml index a6f005712..655e2e25a 100644 --- a/server-rs/crates/agent-runtime-core/Cargo.toml +++ b/server-rs/crates/agent-runtime-core/Cargo.toml @@ -8,6 +8,3 @@ publish = false [dependencies] serde = { version = "1", features = ["derive"] } serde_json = "1" - -[lints.rust] -warnings = "deny" diff --git a/server-rs/crates/agent-runtime-orchestration/Cargo.toml b/server-rs/crates/agent-runtime-orchestration/Cargo.toml index 177d21edb..9a35ff007 100644 --- a/server-rs/crates/agent-runtime-orchestration/Cargo.toml +++ b/server-rs/crates/agent-runtime-orchestration/Cargo.toml @@ -11,6 +11,3 @@ serde = { version = "1", features = ["derive"] } [dev-dependencies] serde_json = "1" - -[lints.rust] -warnings = "deny" diff --git a/server-rs/crates/api-server/Cargo.toml b/server-rs/crates/api-server/Cargo.toml index 23e94d3c0..3f443bdd9 100644 --- a/server-rs/crates/api-server/Cargo.toml +++ b/server-rs/crates/api-server/Cargo.toml @@ -69,6 +69,3 @@ png = { workspace = true } base64 = { workspace = true } http-body-util = { workspace = true } reqwest = { workspace = true, features = ["json", "multipart", "rustls-tls"] } - -[lints] -workspace = true diff --git a/server-rs/crates/editor-adapter-api/Cargo.toml b/server-rs/crates/editor-adapter-api/Cargo.toml index 6d9de2f51..ab3767a71 100644 --- a/server-rs/crates/editor-adapter-api/Cargo.toml +++ b/server-rs/crates/editor-adapter-api/Cargo.toml @@ -9,6 +9,3 @@ description = "通用编辑器适配器契约,宿主与插件 native 模块共 [dependencies] serde = { version = "1", features = ["derive"] } serde_json = "1" - -[lints.rust] -warnings = "deny" diff --git a/server-rs/crates/module-ai/Cargo.toml b/server-rs/crates/module-ai/Cargo.toml index 94f895545..990e938f0 100644 --- a/server-rs/crates/module-ai/Cargo.toml +++ b/server-rs/crates/module-ai/Cargo.toml @@ -12,6 +12,3 @@ spacetime-types = ["dep:spacetimedb"] serde = { workspace = true } shared-kernel = { workspace = true } spacetimedb = { workspace = true, optional = true } - -[lints] -workspace = true diff --git a/server-rs/crates/module-assets/Cargo.toml b/server-rs/crates/module-assets/Cargo.toml index 0f35627ec..be18231f3 100644 --- a/server-rs/crates/module-assets/Cargo.toml +++ b/server-rs/crates/module-assets/Cargo.toml @@ -16,6 +16,3 @@ reqwest = { workspace = true, features = ["rustls-tls"], optional = true } spacetimedb = { workspace = true, optional = true } platform-oss = { workspace = true, optional = true } shared-kernel = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/module-auth/Cargo.toml b/server-rs/crates/module-auth/Cargo.toml index 832c33e55..602e6da65 100644 --- a/server-rs/crates/module-auth/Cargo.toml +++ b/server-rs/crates/module-auth/Cargo.toml @@ -20,6 +20,3 @@ tracing = { workspace = true, optional = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt"] } - -[lints] -workspace = true diff --git a/server-rs/crates/module-editor-agent/Cargo.toml b/server-rs/crates/module-editor-agent/Cargo.toml index b392c091f..188b483f0 100644 --- a/server-rs/crates/module-editor-agent/Cargo.toml +++ b/server-rs/crates/module-editor-agent/Cargo.toml @@ -13,6 +13,3 @@ serde = { workspace = true } serde_json = { workspace = true } shared-kernel = { workspace = true } spacetimedb = { workspace = true, optional = true } - -[lints] -workspace = true diff --git a/server-rs/crates/module-game-distribution/Cargo.toml b/server-rs/crates/module-game-distribution/Cargo.toml index b2da0ff85..10fd80369 100644 --- a/server-rs/crates/module-game-distribution/Cargo.toml +++ b/server-rs/crates/module-game-distribution/Cargo.toml @@ -10,6 +10,3 @@ serde = { workspace = true } sha2 = { workspace = true } shared-kernel = { workspace = true } zip = { workspace = true, features = ["deflate"] } - -[lints] -workspace = true diff --git a/server-rs/crates/module-runtime/Cargo.toml b/server-rs/crates/module-runtime/Cargo.toml index d80bd8115..a37c20d67 100644 --- a/server-rs/crates/module-runtime/Cargo.toml +++ b/server-rs/crates/module-runtime/Cargo.toml @@ -18,6 +18,3 @@ time = { workspace = true, features = ["formatting", "parsing"] } shared-contracts = { workspace = true } uuid = { workspace = true } url = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/pingora-gateway/Cargo.toml b/server-rs/crates/pingora-gateway/Cargo.toml index d79f5e617..1c159c717 100644 --- a/server-rs/crates/pingora-gateway/Cargo.toml +++ b/server-rs/crates/pingora-gateway/Cargo.toml @@ -20,6 +20,3 @@ uuid = { workspace = true, features = ["v4"] } [dev-dependencies] serde = { workspace = true } serde_json = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-agent-harness/Cargo.toml b/server-rs/crates/platform-agent-harness/Cargo.toml index be9749d04..be81ec120 100644 --- a/server-rs/crates/platform-agent-harness/Cargo.toml +++ b/server-rs/crates/platform-agent-harness/Cargo.toml @@ -10,6 +10,3 @@ serde_json = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt", "time"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-agent/Cargo.toml b/server-rs/crates/platform-agent/Cargo.toml index 51c4c1817..62a291332 100644 --- a/server-rs/crates/platform-agent/Cargo.toml +++ b/server-rs/crates/platform-agent/Cargo.toml @@ -20,6 +20,3 @@ tokio = { version = "1", features = ["time"], optional = true } [dev-dependencies] tokio = { version = "1", features = ["macros", "rt", "time"] } - -[lints.rust] -warnings = "deny" diff --git a/server-rs/crates/platform-audio/Cargo.toml b/server-rs/crates/platform-audio/Cargo.toml index c426ac7ce..dde5f97eb 100644 --- a/server-rs/crates/platform-audio/Cargo.toml +++ b/server-rs/crates/platform-audio/Cargo.toml @@ -17,6 +17,3 @@ urlencoding = { workspace = true } [dev-dependencies] base64 = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-auth/Cargo.toml b/server-rs/crates/platform-auth/Cargo.toml index b4ce22528..0133f2c14 100644 --- a/server-rs/crates/platform-auth/Cargo.toml +++ b/server-rs/crates/platform-auth/Cargo.toml @@ -23,6 +23,3 @@ urlencoding = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-editor-agent/Cargo.toml b/server-rs/crates/platform-editor-agent/Cargo.toml index 9547c4e4c..8db3d7480 100644 --- a/server-rs/crates/platform-editor-agent/Cargo.toml +++ b/server-rs/crates/platform-editor-agent/Cargo.toml @@ -17,6 +17,3 @@ platform-audio = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-hyper3d/Cargo.toml b/server-rs/crates/platform-hyper3d/Cargo.toml index 012eeb53a..53f0311a4 100644 --- a/server-rs/crates/platform-hyper3d/Cargo.toml +++ b/server-rs/crates/platform-hyper3d/Cargo.toml @@ -12,6 +12,3 @@ shared-contracts = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-image/Cargo.toml b/server-rs/crates/platform-image/Cargo.toml index e8a06a205..166d6e011 100644 --- a/server-rs/crates/platform-image/Cargo.toml +++ b/server-rs/crates/platform-image/Cargo.toml @@ -15,6 +15,3 @@ serde_json = { workspace = true } tokio = { workspace = true, features = ["io-util", "macros", "net", "time"] } tracing = { workspace = true } platform-oss = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-llm/Cargo.toml b/server-rs/crates/platform-llm/Cargo.toml index 74c1da5dd..b0fa9e34a 100644 --- a/server-rs/crates/platform-llm/Cargo.toml +++ b/server-rs/crates/platform-llm/Cargo.toml @@ -16,6 +16,3 @@ tracing = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt", "sync"] } tracing-subscriber = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-matting/Cargo.toml b/server-rs/crates/platform-matting/Cargo.toml index 8c28b50df..eacc33dad 100644 --- a/server-rs/crates/platform-matting/Cargo.toml +++ b/server-rs/crates/platform-matting/Cargo.toml @@ -21,6 +21,3 @@ uuid = { workspace = true, features = ["v4"] } dotenvy = { workspace = true } platform-oss = { workspace = true } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-oss/Cargo.toml b/server-rs/crates/platform-oss/Cargo.toml index 000affd45..05fca3087 100644 --- a/server-rs/crates/platform-oss/Cargo.toml +++ b/server-rs/crates/platform-oss/Cargo.toml @@ -19,6 +19,3 @@ tracing = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt", "net", "io-util"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-speech/Cargo.toml b/server-rs/crates/platform-speech/Cargo.toml index 3d1dd7b09..5e7ebe15f 100644 --- a/server-rs/crates/platform-speech/Cargo.toml +++ b/server-rs/crates/platform-speech/Cargo.toml @@ -18,6 +18,3 @@ uuid = { workspace = true, features = ["v4"] } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt"] } - -[lints] -workspace = true diff --git a/server-rs/crates/platform-wechat/Cargo.toml b/server-rs/crates/platform-wechat/Cargo.toml index 125d04ee7..734f08116 100644 --- a/server-rs/crates/platform-wechat/Cargo.toml +++ b/server-rs/crates/platform-wechat/Cargo.toml @@ -27,6 +27,3 @@ x509-parser = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } - -[lints] -workspace = true diff --git a/server-rs/crates/preview-deployer-server/Cargo.toml b/server-rs/crates/preview-deployer-server/Cargo.toml index 9c402dca5..6a9b30711 100644 --- a/server-rs/crates/preview-deployer-server/Cargo.toml +++ b/server-rs/crates/preview-deployer-server/Cargo.toml @@ -20,6 +20,3 @@ uuid = { workspace = true, features = ["v4"] } [dev-dependencies] http-body-util = { workspace = true } tower = { workspace = true, features = ["util"] } - -[lints] -workspace = true diff --git a/server-rs/crates/server-manager-panel/Cargo.toml b/server-rs/crates/server-manager-panel/Cargo.toml index 972b09a6c..cf41e79f6 100644 --- a/server-rs/crates/server-manager-panel/Cargo.toml +++ b/server-rs/crates/server-manager-panel/Cargo.toml @@ -11,6 +11,3 @@ eframe = { version = "0.33", default-features = false, features = [ "wayland", "x11", ] } - -[lints] -workspace = true diff --git a/server-rs/crates/shared-contracts/Cargo.toml b/server-rs/crates/shared-contracts/Cargo.toml index f70e585b7..277970c0a 100644 --- a/server-rs/crates/shared-contracts/Cargo.toml +++ b/server-rs/crates/shared-contracts/Cargo.toml @@ -18,6 +18,3 @@ serde = { workspace = true } serde_json = { workspace = true } sha2 = { workspace = true } ts-rs = { workspace = true, optional = true } - -[lints] -workspace = true diff --git a/server-rs/crates/shared-kernel/Cargo.toml b/server-rs/crates/shared-kernel/Cargo.toml index fff339e24..9af9e05bf 100644 --- a/server-rs/crates/shared-kernel/Cargo.toml +++ b/server-rs/crates/shared-kernel/Cargo.toml @@ -9,6 +9,3 @@ time = { workspace = true, features = ["formatting", "parsing"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] uuid = { workspace = true, features = ["v4"] } - -[lints] -workspace = true diff --git a/server-rs/crates/shared-logging/Cargo.toml b/server-rs/crates/shared-logging/Cargo.toml index 6461ab040..e91655e98 100644 --- a/server-rs/crates/shared-logging/Cargo.toml +++ b/server-rs/crates/shared-logging/Cargo.toml @@ -12,6 +12,3 @@ opentelemetry_sdk = { workspace = true } tracing = { workspace = true } tracing-opentelemetry = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter", "fmt", "registry"] } - -[lints] -workspace = true diff --git a/server-rs/crates/spacetime-client/Cargo.toml b/server-rs/crates/spacetime-client/Cargo.toml index 4add4c464..2538df05b 100644 --- a/server-rs/crates/spacetime-client/Cargo.toml +++ b/server-rs/crates/spacetime-client/Cargo.toml @@ -21,6 +21,3 @@ time = { workspace = true } tokio = { workspace = true, features = ["rt", "sync", "time"] } opentelemetry = { workspace = true } tracing = { workspace = true } - -[lints] -workspace = true diff --git a/server-rs/crates/spacetime-module/Cargo.toml b/server-rs/crates/spacetime-module/Cargo.toml index b5f55a1d9..b07af4e81 100644 --- a/server-rs/crates/spacetime-module/Cargo.toml +++ b/server-rs/crates/spacetime-module/Cargo.toml @@ -23,6 +23,3 @@ sha2 = { workspace = true } spacetimedb = { workspace = true, features = ["unstable"] } spacetimedb-lib = { workspace = true, features = ["serde"] } time = { workspace = true, features = ["parsing"] } - -[lints] -workspace = true diff --git a/server-rs/crates/tests-support/Cargo.toml b/server-rs/crates/tests-support/Cargo.toml index 08d4c0e4c..d79bed35b 100644 --- a/server-rs/crates/tests-support/Cargo.toml +++ b/server-rs/crates/tests-support/Cargo.toml @@ -5,6 +5,3 @@ version.workspace = true license.workspace = true [dependencies] - -[lints] -workspace = true