From d0eae73355f87e45622a4f885b64f3cecc1c6f88 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sat, 18 Dec 2021 17:18:44 +0100 Subject: [PATCH] Link Bcrypt on Windows for Rust >=1.57 std depends on Bcrypt on Windows starting with rust 1.57. See https://github.com/rust-lang/rust/pull/84096. Signed-off-by: Jonathan Schwender --- generator/src/subcommands/gen_cmake/platform.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator/src/subcommands/gen_cmake/platform.rs b/generator/src/subcommands/gen_cmake/platform.rs index 61185414..41bcbcd8 100644 --- a/generator/src/subcommands/gen_cmake/platform.rs +++ b/generator/src/subcommands/gen_cmake/platform.rs @@ -41,6 +41,10 @@ impl Platform { libs.extend_from_slice(&["shell32".to_string(), "kernel32".to_string()]); } + if version >= &Version::parse("1.57.0").unwrap() { + libs.extend_from_slice(&["bcrypt".to_string()]); + } + (libs, libs_debug, libs_release) } OS::MacOS => (