Remove async-std support (RIP)

This commit is contained in:
Héctor Ramón Jiménez 2025-04-02 10:45:27 +02:00
parent 57cb14ce38
commit 91996372cb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 13 additions and 104 deletions

View file

@ -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"
)))]