Introduce tokio_old feature
This feature allows users to rely on the `0.2` version of `tokio` while the async ecosystem upgrades to the latest version.
This commit is contained in:
parent
a4ad1b297e
commit
782dd2f522
10 changed files with 67 additions and 9 deletions
|
|
@ -19,6 +19,12 @@ log = "0.4"
|
|||
[dependencies.futures]
|
||||
version = "0.3"
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio_old]
|
||||
package = "tokio"
|
||||
version = "0.2"
|
||||
optional = true
|
||||
features = ["rt-core", "rt-threaded", "time", "stream"]
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
|
||||
version = "0.3"
|
||||
optional = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue