Skip to content

Commit 8425682

Browse files
committed
Disable the os_pipe impls on WASI for now.
WASI doesn't yet support pipes, so os_pipe doesn't currently compile under WASI, so disable the io-lifetimes impls for os_pipe on WASI for now.
1 parent ffc0e79 commit 8425682

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ exclude = ["/.github"]
2323
async-std = { version = "1.9.0", features = ["unstable"], optional = true }
2424
# Optionally depend on tokio to implement traits for its types for now.
2525
tokio = { version = "1.6.0", features = ["io-std", "fs", "net", "process"], optional = true }
26-
# Optionally depend on os_pipe to implement traits for its types for now.
27-
os_pipe = { version = "1.0.0", optional = true }
2826
# Optionally depend on socket2 to implement traits for its types for now.
2927
socket2 = { version = "0.4.0", optional = true }
3028
# Optionally depend on mio to implement traits for its types for now.
3129
mio = { version = "0.8.0", features = ["net", "os-ext"], optional = true }
3230
# Optionally depend on fs_err to implement traits for its types for now.
3331
fs-err = { version = "2.6.0", optional = true }
3432

33+
[target.'cfg(not(target_os = "wasi"))'.dependencies]
34+
# Optionally depend on os_pipe to implement traits for its types for now.
35+
os_pipe = { version = "1.0.0", optional = true }
36+
3537
[target.'cfg(not(windows))'.dependencies]
3638
libc = { version = "0.2.96", optional = true }
3739

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ mod impls_fs_err;
162162
#[cfg(not(io_lifetimes_use_std))]
163163
#[cfg(feature = "mio")]
164164
mod impls_mio;
165+
#[cfg(not(target_os = "wasi"))]
165166
#[cfg(not(io_lifetimes_use_std))]
166167
#[cfg(feature = "os_pipe")]
167168
mod impls_os_pipe;

0 commit comments

Comments
 (0)