Skip to content

Commit b2d0bc0

Browse files
committed
add _winapi attributes
1 parent 2e7ec1d commit b2d0bc0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ version = "0.3.9"
114114
features = [
115115
"winsock2", "handleapi", "ws2def", "std", "winbase", "wincrypt", "fileapi", "processenv",
116116
"namedpipeapi", "winnt", "processthreadsapi", "errhandlingapi", "winuser", "synchapi", "wincon",
117-
"impl-default", "vcruntime", "ifdef", "netioapi"
117+
"impl-default", "vcruntime", "ifdef", "netioapi", "memoryapi",
118118
]
119119

120120
[target.'cfg(target_arch = "wasm32")'.dependencies]

vm/src/stdlib/winapi.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,18 @@ mod _winapi {
1919

2020
#[pyattr]
2121
use winapi::{
22-
shared::winerror::WAIT_TIMEOUT,
22+
shared::winerror::{
23+
ERROR_ALREADY_EXISTS, ERROR_BROKEN_PIPE, ERROR_IO_PENDING, ERROR_MORE_DATA,
24+
ERROR_NETNAME_DELETED, ERROR_NO_DATA, ERROR_NO_SYSTEM_RESOURCES,
25+
ERROR_OPERATION_ABORTED, ERROR_PIPE_BUSY, ERROR_PIPE_CONNECTED, ERROR_SEM_TIMEOUT,
26+
WAIT_TIMEOUT,
27+
},
2328
um::{
29+
fileapi::OPEN_EXISTING,
30+
memoryapi::{
31+
FILE_MAP_ALL_ACCESS, FILE_MAP_COPY, FILE_MAP_EXECUTE, FILE_MAP_READ, FILE_MAP_WRITE,
32+
},
33+
minwinbase::STILL_ACTIVE,
2434
winbase::{
2535
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
2636
CREATE_BREAKAWAY_FROM_JOB, CREATE_DEFAULT_ERROR_MODE, CREATE_NEW_CONSOLE,

0 commit comments

Comments
 (0)