Disable the contents of this crate on unknown platforms. (#55)

Add `#![cfg(any(unix, windows, target_os = "wasi"))]` to the top-level
lib.rs so that io-lifetimes can appear as a dependency on platforms even
when it doesn't have support for them.
This commit is contained in:
Dan Gohman
2022-11-28 06:48:19 -08:00
committed by GitHub
parent e4c9cc69c6
commit e5860e95c9
+2
View File
@@ -30,6 +30,8 @@
#![deny(missing_docs)]
// Work around https://github.com/rust-lang/rust/issues/103306.
#![cfg_attr(all(wasi_ext, target_os = "wasi"), feature(wasi_ext))]
// Currently supported platforms.
#![cfg(any(unix, windows, target_os = "wasi"))]
mod portability;
mod traits;