1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

Add winapi crate, make 'rand' and 'tempfile' work

This commit is contained in:
Bert Belder 2018-07-28 17:10:43 +02:00 committed by Ryan Dahl
parent 37a4606d29
commit 604a8a640c
3 changed files with 46 additions and 1 deletions

View file

@ -57,6 +57,7 @@ main_extern = [
"$rust_build:rand", "$rust_build:rand",
"$rust_build:rand_core", "$rust_build:rand_core",
"$rust_build:remove_dir_all", "$rust_build:remove_dir_all",
"$rust_build:winapi",
] ]
rust_executable("deno") { rust_executable("deno") {

View file

@ -81,6 +81,7 @@ rust_component("tempfile") {
":libc", ":libc",
":rand", ":rand",
":remove_dir_all", ":remove_dir_all",
":winapi",
] ]
} }
@ -91,6 +92,9 @@ rust_component("rand") {
":libc", ":libc",
":rand_core", ":rand_core",
] ]
if (is_win) {
extern += [ ":winapi" ]
}
features = [ features = [
"std", "std",
"alloc", "alloc",
@ -106,4 +110,44 @@ rust_component("rand_core") {
rust_component("remove_dir_all") { rust_component("remove_dir_all") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.1/src/lib.rs" 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",
]
} }

@ -1 +1 @@
Subproject commit 429da4dac5865386d5410f084a68e4cd71a94bc8 Subproject commit 142a1b091123804afa92d03381094db521bb08bb