File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ alloc = [
51
51
" futures-core/alloc" ,
52
52
" pin-project-lite" ,
53
53
]
54
+ tokio02 = [" smol/tokio02" ]
54
55
55
56
[dependencies ]
56
57
async-attributes = { version = " 1.1.1" , optional = true }
@@ -98,4 +99,4 @@ required-features = ["unstable"]
98
99
99
100
[[example ]]
100
101
name = " surf-web"
101
- required-features = [" surf" ]
102
+ required-features = [" surf" ]
Original file line number Diff line number Diff line change 214
214
//! features = ["attributes"]
215
215
//! ```
216
216
//!
217
+ //! Compatibility with the `tokio` runtime is possible using the `tokio02`
218
+ //! Cargo feature:
219
+ //!
220
+ //! ```toml
221
+ //! [dependencies.async-std]
222
+ //! version = "1.6.0"
223
+ //! features = ["tokio02"]
224
+ //! ```
225
+ //!
217
226
//! Additionally it's possible to only use the core traits and combinators by
218
227
//! only enabling the `std` Cargo feature:
219
228
//!
You can’t perform that action at this time.
0 commit comments