Commit 3214ec2 1 parent fe7bc25 commit 3214ec2 Copy full SHA for 3214ec2
File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 71
71
toolchain : ${{ matrix.rust }}
72
72
- run : >
73
73
rustup target add
74
- wasm32-wasi
75
- - run : cargo check --workspace --release -vv --target=wasm32-wasi --all-targets
74
+ wasm32-wasip2
75
+ - run : cargo check --workspace --release -vv --target=wasm32-wasip2 --all-targets
76
76
77
77
test :
78
78
name : Test
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ libc = "0.2"
22
22
hermit-abi = " 0.4.0"
23
23
24
24
[target .'cfg(windows)' .dependencies .windows-sys ]
25
- version = " 0.59.0 "
25
+ version = " >=0.52, <=0.59 "
26
26
features = [
27
27
" Win32_Foundation" ,
28
28
" Win32_Storage_FileSystem" ,
@@ -33,7 +33,7 @@ features = [
33
33
atty = " 0.2.14"
34
34
35
35
[target .'cfg(any(unix, target_os = "wasi"))' .dev-dependencies ]
36
- rustix = { version = " 0.38.0 " , features = [" termios" ] }
36
+ rustix = { version = " 0.38.44 " , features = [" termios" ] }
37
37
libc = " 0.2.110"
38
38
39
39
[target .'cfg(not(any(windows, target_os = "hermit", target_os = "unknown")))' .dev-dependencies ]
Original file line number Diff line number Diff line change 36
36
no_std
37
37
) ]
38
38
39
+ #[ cfg( target_os = "wasi" ) ]
40
+ use std:: os:: fd:: { AsFd , AsRawFd } ;
39
41
#[ cfg( target_os = "hermit" ) ]
40
42
use std:: os:: hermit:: io:: AsFd ;
41
43
#[ cfg( unix) ]
42
44
use std:: os:: unix:: io:: { AsFd , AsRawFd } ;
43
- #[ cfg( target_os = "wasi" ) ]
44
- use std:: os:: wasi:: io:: { AsFd , AsRawFd } ;
45
45
#[ cfg( windows) ]
46
46
use std:: os:: windows:: io:: { AsHandle , AsRawHandle , BorrowedHandle } ;
47
47
#[ cfg( windows) ]
@@ -123,13 +123,13 @@ fn handle_is_console(handle: BorrowedHandle<'_>) -> bool {
123
123
124
124
unsafe {
125
125
let mut out = 0 ;
126
- if GetConsoleMode ( handle, & mut out) != 0 {
126
+ if GetConsoleMode ( handle as HANDLE , & mut out) != 0 {
127
127
// False positives aren't possible. If we got a console then we definitely have a console.
128
128
return true ;
129
129
}
130
130
131
131
// Otherwise, we fall back to an msys hack to see if we can detect the presence of a pty.
132
- msys_tty_on ( handle)
132
+ msys_tty_on ( handle as HANDLE )
133
133
}
134
134
}
135
135
You can’t perform that action at this time.
0 commit comments