File tree 6 files changed +17
-17
lines changed
6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ jobs:
150
150
riscv64gc-unknown-linux-gnu
151
151
arm-unknown-linux-gnueabihf
152
152
aarch64-linux-android
153
- wasm32-wasi
153
+ wasm32-wasip1
154
154
- run : cargo check --workspace --all-targets --all-features --release -vv
155
155
- run : cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-linux-musl
156
156
- run : cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-linux-gnux32
@@ -164,7 +164,7 @@ jobs:
164
164
- run : cargo check --workspace --all-targets --all-features --release -vv --target=riscv64gc-unknown-linux-gnu
165
165
- run : cargo check --workspace --all-targets --all-features --release -vv --target=arm-unknown-linux-gnueabihf
166
166
- run : cargo check --workspace --all-targets --all-features --release -vv --target=aarch64-linux-android
167
- - run : cd cap-std && cargo check --features=fs_utf8 --release -vv --target=wasm32-wasi
167
+ - run : cd cap-std && cargo check --features=fs_utf8 --release -vv --target=wasm32-wasip1
168
168
169
169
check_cross_nightly_windows :
170
170
name : Check Cross-Compilation on Rust nightly on Windows
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ fn has_feature(feature: &str) -> bool {
48
48
fn can_compile < T : AsRef < str > > ( test : T ) -> bool {
49
49
use std:: process:: Stdio ;
50
50
51
- let out_dir = var ( "OUT_DIR" ) . unwrap ( ) ;
52
51
let rustc = var ( "RUSTC" ) . unwrap ( ) ;
53
52
let target = var ( "TARGET" ) . unwrap ( ) ;
54
53
@@ -72,8 +71,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
72
71
. arg ( "--emit=metadata" ) // Do as little as possible but still parse.
73
72
. arg ( "--target" )
74
73
. arg ( target)
75
- . arg ( "--out-dir" )
76
- . arg ( out_dir) ; // Put the output somewhere inconsequential.
74
+ . arg ( "-o" )
75
+ . arg ( "-" )
76
+ . stdout ( Stdio :: null ( ) ) ; // We don't care about the output (only whether it builds or not)
77
77
78
78
// If Cargo wants to set RUSTFLAGS, use that.
79
79
if let Ok ( rustflags) = var ( "CARGO_ENCODED_RUSTFLAGS" ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ fn has_feature(feature: &str) -> bool {
35
35
fn can_compile < T : AsRef < str > > ( test : T ) -> bool {
36
36
use std:: process:: Stdio ;
37
37
38
- let out_dir = var ( "OUT_DIR" ) . unwrap ( ) ;
39
38
let rustc = var ( "RUSTC" ) . unwrap ( ) ;
40
39
let target = var ( "TARGET" ) . unwrap ( ) ;
41
40
@@ -59,8 +58,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
59
58
. arg ( "--emit=metadata" ) // Do as little as possible but still parse.
60
59
. arg ( "--target" )
61
60
. arg ( target)
62
- . arg ( "--out-dir" )
63
- . arg ( out_dir) ; // Put the output somewhere inconsequential.
61
+ . arg ( "-o" )
62
+ . arg ( "-" )
63
+ . stdout ( Stdio :: null ( ) ) ; // We don't care about the output (only whether it builds or not)
64
64
65
65
// If Cargo wants to set RUSTFLAGS, use that.
66
66
if let Ok ( rustflags) = var ( "CARGO_ENCODED_RUSTFLAGS" ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ fn has_feature(feature: &str) -> bool {
32
32
fn can_compile < T : AsRef < str > > ( test : T ) -> bool {
33
33
use std:: process:: Stdio ;
34
34
35
- let out_dir = var ( "OUT_DIR" ) . unwrap ( ) ;
36
35
let rustc = var ( "RUSTC" ) . unwrap ( ) ;
37
36
let target = var ( "TARGET" ) . unwrap ( ) ;
38
37
@@ -56,8 +55,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
56
55
. arg ( "--emit=metadata" ) // Do as little as possible but still parse.
57
56
. arg ( "--target" )
58
57
. arg ( target)
59
- . arg ( "--out-dir" )
60
- . arg ( out_dir) ; // Put the output somewhere inconsequential.
58
+ . arg ( "-o" )
59
+ . arg ( "-" )
60
+ . stdout ( Stdio :: null ( ) ) ; // We don't care about the output (only whether it builds or not)
61
61
62
62
// If Cargo wants to set RUSTFLAGS, use that.
63
63
if let Ok ( rustflags) = var ( "CARGO_ENCODED_RUSTFLAGS" ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ fn has_feature(feature: &str) -> bool {
42
42
fn can_compile < T : AsRef < str > > ( test : T ) -> bool {
43
43
use std:: process:: Stdio ;
44
44
45
- let out_dir = var ( "OUT_DIR" ) . unwrap ( ) ;
46
45
let rustc = var ( "RUSTC" ) . unwrap ( ) ;
47
46
let target = var ( "TARGET" ) . unwrap ( ) ;
48
47
@@ -66,8 +65,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
66
65
. arg ( "--emit=metadata" ) // Do as little as possible but still parse.
67
66
. arg ( "--target" )
68
67
. arg ( target)
69
- . arg ( "--out-dir" )
70
- . arg ( out_dir) ; // Put the output somewhere inconsequential.
68
+ . arg ( "-o" )
69
+ . arg ( "-" )
70
+ . stdout ( Stdio :: null ( ) ) ; // We don't care about the output (only whether it builds or not)
71
71
72
72
// If Cargo wants to set RUSTFLAGS, use that.
73
73
if let Ok ( rustflags) = var ( "CARGO_ENCODED_RUSTFLAGS" ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ fn has_feature(feature: &str) -> bool {
37
37
fn can_compile < T : AsRef < str > > ( test : T ) -> bool {
38
38
use std:: process:: Stdio ;
39
39
40
- let out_dir = var ( "OUT_DIR" ) . unwrap ( ) ;
41
40
let rustc = var ( "RUSTC" ) . unwrap ( ) ;
42
41
let target = var ( "TARGET" ) . unwrap ( ) ;
43
42
@@ -61,8 +60,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
61
60
. arg ( "--emit=metadata" ) // Do as little as possible but still parse.
62
61
. arg ( "--target" )
63
62
. arg ( target)
64
- . arg ( "--out-dir" )
65
- . arg ( out_dir) ; // Put the output somewhere inconsequential.
63
+ . arg ( "-o" )
64
+ . arg ( "-" )
65
+ . stdout ( Stdio :: null ( ) ) ; // We don't care about the output (only whether it builds or not)
66
66
67
67
// If Cargo wants to set RUSTFLAGS, use that.
68
68
if let Ok ( rustflags) = var ( "CARGO_ENCODED_RUSTFLAGS" ) {
You can’t perform that action at this time.
0 commit comments