File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 51
51
- name : Test (all features)
52
52
run : CARGO_TARGET_WASM32_WASI_RUNNER=wasmtime cargo test --target wasm32-wasi --all-features
53
53
54
+ emscripten :
55
+ name : Test Emscripten
56
+ runs-on : ubuntu-latest
57
+ container : emscripten/emsdk:latest
58
+ steps :
59
+ - name : Checkout repository
60
+ uses : actions/checkout@v4
61
+ - name : Install toolchain
62
+ uses : dtolnay/rust-toolchain@nightly
63
+ with :
64
+ targets : wasm32-unknown-emscripten
65
+ - name : Test (no features)
66
+ run : CARGO_TARGET_WASM32_UNKNOWN_EMSCRIPTEN_RUNNER=node cargo test --target wasm32-unknown-emscripten --no-default-features
67
+ - name : Test (all features)
68
+ run : CARGO_TARGET_WASM32_UNKNOWN_EMSCRIPTEN_RUNNER=node cargo test --target wasm32-unknown-emscripten --all-features
69
+
54
70
55
71
lints :
56
72
name : Rustfmt & Clippy
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ fn check_description() {
120
120
"Incorrect function."
121
121
} else if cfg ! ( target_os = "illumos" ) {
122
122
"Not owner"
123
- } else if cfg ! ( target_os = "wasi" ) {
123
+ } else if cfg ! ( target_os = "wasi" ) || cfg ! ( target_os = "emscripten" ) {
124
124
"Argument list too long"
125
125
} else if cfg ! ( target_os = "haiku" ) {
126
126
"Operation not allowed"
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ extern "C" {
91
91
target_os = "linux" ,
92
92
target_os = "hurd" ,
93
93
target_os = "redox" ,
94
- target_os = "dragonfly"
94
+ target_os = "dragonfly" ,
95
+ target_os = "emscripten" ,
95
96
) ,
96
97
link_name = "__errno_location"
97
98
) ]
You can’t perform that action at this time.
0 commit comments