Remove async-std support (RIP)
This commit is contained in:
parent
57cb14ce38
commit
91996372cb
8 changed files with 13 additions and 104 deletions
|
|
@ -2,10 +2,9 @@
|
|||
//!
|
||||
//! - On native platforms, it will use:
|
||||
//! - `backend::native::tokio` when the `tokio` feature is enabled.
|
||||
//! - `backend::native::async-std` when the `async-std` feature is
|
||||
//! enabled.
|
||||
//! - `backend::native::smol` when the `smol` feature is enabled.
|
||||
//! - `backend::native::thread_pool` otherwise.
|
||||
//! - `backend::native::thread_pool` when the `thread-pool` feature is enabled.
|
||||
//! - `backend::null` otherwise.
|
||||
//!
|
||||
//! - On Wasm, it will use `backend::wasm::wasm_bindgen`.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
|
|
@ -13,24 +12,17 @@ mod platform {
|
|||
#[cfg(feature = "tokio")]
|
||||
pub use crate::backend::native::tokio::*;
|
||||
|
||||
#[cfg(all(feature = "async-std", not(feature = "tokio"),))]
|
||||
pub use crate::backend::native::async_std::*;
|
||||
|
||||
#[cfg(all(
|
||||
feature = "smol",
|
||||
not(any(feature = "tokio", feature = "async-std")),
|
||||
))]
|
||||
#[cfg(all(feature = "smol", not(feature = "tokio"),))]
|
||||
pub use crate::backend::native::smol::*;
|
||||
|
||||
#[cfg(all(
|
||||
feature = "thread-pool",
|
||||
not(any(feature = "tokio", feature = "async-std", feature = "smol"))
|
||||
not(any(feature = "tokio", feature = "smol"))
|
||||
))]
|
||||
pub use crate::backend::native::thread_pool::*;
|
||||
|
||||
#[cfg(not(any(
|
||||
feature = "tokio",
|
||||
feature = "async-std",
|
||||
feature = "smol",
|
||||
feature = "thread-pool"
|
||||
)))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue