mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-26 17:02:32 +01:00
Bump tokio to 1.0 (#337)
Co-authored-by: Artem Vorotnikov <artem@vorotnikov.me>
This commit is contained in:
@@ -74,7 +74,7 @@ your `Cargo.toml`:
|
||||
```toml
|
||||
futures = "0.3"
|
||||
tarpc = { version = "0.23.0", features = ["tokio1"] }
|
||||
tokio = "0.3"
|
||||
tokio = "1"
|
||||
```
|
||||
|
||||
In the following example, we use an in-process channel for communication between
|
||||
|
||||
@@ -18,7 +18,7 @@ env_logger = "0.8"
|
||||
futures = "0.3"
|
||||
serde = { version = "1.0" }
|
||||
tarpc = { version = "0.23", path = "../tarpc", features = ["full"] }
|
||||
tokio = { version = "0.3", features = ["full"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
|
||||
[lib]
|
||||
name = "service"
|
||||
|
||||
@@ -18,7 +18,7 @@ default = []
|
||||
serde1 = ["tarpc-plugins/serde1", "serde", "serde/derive"]
|
||||
tokio1 = ["tokio/rt-multi-thread"]
|
||||
serde-transport = ["serde1", "tokio1", "tokio-serde/json", "tokio-util/codec"]
|
||||
tcp = ["tokio/net", "tokio/stream"]
|
||||
tcp = ["tokio/net"]
|
||||
|
||||
full = ["serde1", "tokio1", "serde-transport", "tcp"]
|
||||
|
||||
@@ -36,21 +36,21 @@ rand = "0.7"
|
||||
serde = { optional = true, version = "1.0", features = ["derive"] }
|
||||
static_assertions = "1.1.0"
|
||||
tarpc-plugins = { path = "../plugins", version = "0.8" }
|
||||
tokio = { version = "0.3", features = ["time"] }
|
||||
tokio-util = { optional = true, version = "0.5" }
|
||||
tokio-serde = { optional = true, version = "0.7.1" }
|
||||
tokio = { version = "1", features = ["time"] }
|
||||
tokio-util = { optional = true, version = "0.6" }
|
||||
tokio-serde = { optional = true, version = "0.8" }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.4"
|
||||
bincode = "1.3"
|
||||
bytes = { version = "0.6", features = ["serde"] }
|
||||
bytes = { version = "1", features = ["serde"] }
|
||||
env_logger = "0.8"
|
||||
flate2 = "1.0"
|
||||
log = "0.4"
|
||||
pin-utils = "0.1.0-alpha"
|
||||
serde_bytes = "0.11"
|
||||
tokio = { version = "0.3", features = ["full"] }
|
||||
tokio-serde = { version = "0.7.1", features = ["json", "bincode"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tokio-serde = { version = "0.8", features = ["json", "bincode"] }
|
||||
trybuild = "1.0"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
//! your `Cargo.toml`:
|
||||
//!
|
||||
//! ```toml
|
||||
//! futures = "0.3"
|
||||
//! futures = "1.0"
|
||||
//! tarpc = { version = "0.23.0", features = ["tokio1"] }
|
||||
//! tokio = { version = "0.3", features = ["macros"] }
|
||||
//! tokio = { version = "1", features = ["macros"] }
|
||||
//! ```
|
||||
//!
|
||||
//! In the following example, we use an in-process channel for communication between
|
||||
|
||||
Reference in New Issue
Block a user