From ff448f31c16bb74af99e70faa2936b54f060ae7d Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Tue, 15 Sep 2026 12:09:55 +0200 Subject: [PATCH 1/2] Unified: use `link_deps` for native deps of `swift_syntax_rs` `rules_rust` deprecated C++ libraries in `deps`, warning on every build. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- unified/swift-syntax-rs/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unified/swift-syntax-rs/BUILD.bazel b/unified/swift-syntax-rs/BUILD.bazel index 553226143cbb..79092fb14ad0 100644 --- a/unified/swift-syntax-rs/BUILD.bazel +++ b/unified/swift-syntax-rs/BUILD.bazel @@ -72,7 +72,7 @@ rust_library( ), edition = "2024", target_compatible_with = UNIFIED_SUPPORTED_PLATFORMS, - deps = select({ + link_deps = select({ ":static_linux_runtime": [ # Keep these in linker order; sorting them produces an invalid group. ":static_runtime_group_start", From bae1eeb358aac01a9ca6da37436b7c1c03b1f5e0 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Tue, 15 Sep 2026 12:14:18 +0200 Subject: [PATCH 2/2] Format `swift_syntax_rs` link deps Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- unified/swift-syntax-rs/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unified/swift-syntax-rs/BUILD.bazel b/unified/swift-syntax-rs/BUILD.bazel index 79092fb14ad0..1eda8db26c1f 100644 --- a/unified/swift-syntax-rs/BUILD.bazel +++ b/unified/swift-syntax-rs/BUILD.bazel @@ -71,7 +71,6 @@ rust_library( exclude = ["src/main.rs"], ), edition = "2024", - target_compatible_with = UNIFIED_SUPPORTED_PLATFORMS, link_deps = select({ ":static_linux_runtime": [ # Keep these in linker order; sorting them produces an invalid group. @@ -87,6 +86,7 @@ rust_library( ":swift_syntax_ffi", ], }), + target_compatible_with = UNIFIED_SUPPORTED_PLATFORMS, ) # A debugging aid, for looking at the raw swift-syntax JSON for some input: