From 7f946c7f834e6437382b19e297f2fbfec850a12c Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Wed, 11 Dec 2019 20:08:36 -0800 Subject: [PATCH] Make tokio a hard dependency. Fixes #289 --- tarpc/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 4faa4a7..3e70db3 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -16,7 +16,7 @@ description = "An RPC framework for Rust with a focus on ease of use." default = [] serde1 = ["tarpc-plugins/serde1", "serde", "serde/derive"] -tokio1 = ["tokio"] +tokio1 = [] serde-transport = ["tokio-serde", "tokio-util/codec"] tcp = ["tokio/net", "tokio/stream"] @@ -33,8 +33,8 @@ log = "0.4" pin-project = "0.4" raii-counter = "0.2" rand = "0.7" +tokio = { version = "0.2", features = ["time"] } serde = { optional = true, version = "1.0", features = ["derive"] } -tokio = { optional = true, version = "0.2", features = ["time"] } tokio-util = { optional = true, version = "0.2" } tarpc-plugins = { path = "../plugins" } tokio-serde = { optional = true, version = "0.6" }