Skip to content

Commit d0eae73

Browse files
committed
Link Bcrypt on Windows for Rust >=1.57
std depends on Bcrypt on Windows starting with rust 1.57. See rust-lang/rust#84096. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
1 parent f679545 commit d0eae73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generator/src/subcommands/gen_cmake/platform.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ impl Platform {
4141
libs.extend_from_slice(&["shell32".to_string(), "kernel32".to_string()]);
4242
}
4343

44+
if version >= &Version::parse("1.57.0").unwrap() {
45+
libs.extend_from_slice(&["bcrypt".to_string()]);
46+
}
47+
4448
(libs, libs_debug, libs_release)
4549
}
4650
OS::MacOS => (

0 commit comments

Comments
 (0)