forked from mirror/async-std
Add the tokio02 feature flag
This commit is contained in:
parent
0ec027dbff
commit
166c469d1c
2 changed files with 11 additions and 1 deletions
|
@ -51,6 +51,7 @@ alloc = [
|
||||||
"futures-core/alloc",
|
"futures-core/alloc",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
]
|
]
|
||||||
|
tokio02 = ["smol/tokio02"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-attributes = { version = "1.1.1", optional = true }
|
async-attributes = { version = "1.1.1", optional = true }
|
||||||
|
|
|
@ -214,6 +214,15 @@
|
||||||
//! features = ["attributes"]
|
//! features = ["attributes"]
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
//! Compatibility with the `tokio` runtime is possible using the `tokio02`
|
||||||
|
//! Cargo feature:
|
||||||
|
//!
|
||||||
|
//! ```toml
|
||||||
|
//! [dependencies.async-std]
|
||||||
|
//! version = "1.6.0"
|
||||||
|
//! features = ["tokio02"]
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
//! Additionally it's possible to only use the core traits and combinators by
|
//! Additionally it's possible to only use the core traits and combinators by
|
||||||
//! only enabling the `std` Cargo feature:
|
//! only enabling the `std` Cargo feature:
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue