diff --git a/README.md b/README.md index 4931a57..95bc681 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example-service/Cargo.toml b/example-service/Cargo.toml index e919166..51546eb 100644 --- a/example-service/Cargo.toml +++ b/example-service/Cargo.toml @@ -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" diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 5004290..66b89a3 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -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] diff --git a/tarpc/src/lib.rs b/tarpc/src/lib.rs index 362b3fb..9bbec25 100644 --- a/tarpc/src/lib.rs +++ b/tarpc/src/lib.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