diff --git a/BUILD.gn b/BUILD.gn index 9f2f8868d6..bb81db4ba9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -57,6 +57,7 @@ main_extern = [ "$rust_build:rand", "$rust_build:rand_core", "$rust_build:remove_dir_all", + "$rust_build:winapi", ] rust_executable("deno") { diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 9988ea6e70..52b89181a4 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -81,6 +81,7 @@ rust_component("tempfile") { ":libc", ":rand", ":remove_dir_all", + ":winapi", ] } @@ -91,6 +92,9 @@ rust_component("rand") { ":libc", ":rand_core", ] + if (is_win) { + extern += [ ":winapi" ] + } features = [ "std", "alloc", @@ -106,4 +110,44 @@ rust_component("rand_core") { rust_component("remove_dir_all") { source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.1/src/lib.rs" + extern = [] + if (is_win) { + extern += [ ":winapi" ] + } +} + +rust_component("winapi") { + source_root = + "$crates/registry/src/github.com-1ecc6299db9ec823/winapi-0.3.5/src/lib.rs" + features = [ + "basetsd", + "cfg", + "cfgmgr32", + "errhandlingapi", + "excpt", + "fileapi", + "guiddef", + "handleapi", + "ktmtypes", + "libloaderapi", + "lsalookup", + "minwinbase", + "minwindef", + "ntdef", + "ntsecapi", + "ntstatus", + "processthreadsapi", + "profileapi", + "sspi", + "std", + "subauth", + "vadefs", + "vcruntime", + "winbase", + "wincred", + "windef", + "winerror", + "winnt", + "winreg", + ] } diff --git a/third_party b/third_party index 429da4dac5..142a1b0911 160000 --- a/third_party +++ b/third_party @@ -1 +1 @@ -Subproject commit 429da4dac5865386d5410f084a68e4cd71a94bc8 +Subproject commit 142a1b091123804afa92d03381094db521bb08bb