Skip to content

Commit 03965f9

Browse files
committed
Fix WASI target name
1 parent f37cb6e commit 03965f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[target.wasm32-wasi]
1+
[target.wasm32-wasip1]
22
runner = ["./scripts/wasmtime-wrapper.sh"]

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
strategy:
119119
fail-fast: false
120120
matrix:
121-
target: [wasm32-wasi]
121+
target: [wasm32-wasip1]
122122
runs-on: ubuntu-latest
123123
steps:
124124
- name: Install rust

src/wasm_term.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ pub const DEFAULT_WIDTH: u16 = 80;
1010

1111
#[inline]
1212
pub fn is_a_terminal(_out: &Term) -> bool {
13-
#[cfg(target = "wasm32-wasi")]
13+
#[cfg(target = "wasm32-wasip1")]
1414
{
1515
unsafe { libc::isatty(out.as_raw_fd()) != 0 }
1616
}
17-
#[cfg(not(target = "wasm32-wasi"))]
17+
#[cfg(not(target = "wasm32-wasip1"))]
1818
{
1919
false
2020
}

0 commit comments

Comments
 (0)