Skip to content

Commit

Permalink
feat: gate enhanced Wasm support on tokio_unstable
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <richard@profian.com>
  • Loading branch information
rjzak committed Jul 11, 2022
1 parent 4c0cf30 commit 0179a4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tokio/src/lib.rs
Expand Up @@ -393,6 +393,10 @@ compile_error! {
"Tokio requires the platform pointer width to be 32, 64, or 128 bits"
}

#[cfg(not(tokio_unstable))]
#[cfg(wasm, any(feature = "fs", feature = "io-std", feature = "net", feature = "process", feature = "rt-multi-thread", feature = "signal", feature = "time"))]
compile_error!("Only features sync,macros,io-util,rt are supported on wasm.");

// Includes re-exports used by macros.
//
// This module is not intended to be part of the public API. In general, any
Expand Down

0 comments on commit 0179a4c

Please sign in to comment.