From 26623f7e3256e441f3890fc9318f3718df768957 Mon Sep 17 00:00:00 2001 From: Guillaume Hetier Date: Mon, 9 Mar 2026 17:39:51 -0700 Subject: [PATCH 1/2] Remove user32 linker dependency from Rust build user32 is not needed because we disable the OpenSSL symbols (MessageBoxW, etc.) that reference it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/build.rs b/scripts/build.rs index acbab0ebe6..4b71bf16e2 100644 --- a/scripts/build.rs +++ b/scripts/build.rs @@ -100,10 +100,7 @@ fn cmake_build() { ] { println!("cargo:rustc-link-lib={lib}"); } - if cfg!(feature = "openssl") || cfg!(feature = "quictls") { - // OpenSSL references user32 symbols (MessageBoxW, etc.) - println!("cargo:rustc-link-lib=user32"); - } + } } } From 26dc0f272a0ff4c84d03ea902a1cb4dfa5007906 Mon Sep 17 00:00:00 2001 From: Guillaume Hetier Date: Tue, 10 Mar 2026 09:34:36 -0700 Subject: [PATCH 2/2] Format --- scripts/build.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/build.rs b/scripts/build.rs index 4b71bf16e2..a718c5207a 100644 --- a/scripts/build.rs +++ b/scripts/build.rs @@ -100,7 +100,6 @@ fn cmake_build() { ] { println!("cargo:rustc-link-lib={lib}"); } - } } }