Bump tokio from 0.2 to 0.3 (#319)

# Bump `tokio` from 0.2 to 0.3

* `Cargo.toml`:
    * bump `tokio` from 0.2 to 0.3
    * bump `tokio-util` from 0.3 to 0.4
    * remove feature `time` from `tokio`
    * fix alphabetical order of dependencies
* `tarpc::rpc`:
    * `client, server`: `tokio::time::Elapsed` -> `tokio::time::error::Elapsed`
    * `client, transport`, `::tests`: Fix `#[tokio::test]` macro usage
* `tarpc::serde_transport`:
    * `TcpListener.incoming().poll_next(...)` -> `TcpListener.poll_accept(...)`
      -> https://github.com/tokio-rs/tokio/discussions/2983
    * Adapt `AsyncRead`, `AsynWrite` implements in tests
* `README.md`, `tarpc::lib`: Adapt tokio version in docs

# Satisfy clippy

* replace `match`-statements with `matches!(...)`-macro
This commit is contained in:
Johann Hemmann
2020-10-18 02:33:08 +02:00
committed by GitHub
parent d27f341bde
commit 026083d653
10 changed files with 34 additions and 38 deletions

View File

@@ -17,9 +17,9 @@ clap = "2.0"
futures = "0.3"
serde = { version = "1.0" }
tarpc = { version = "0.22", path = "../tarpc", features = ["full"] }
tokio = { version = "0.2", features = ["full"] }
tokio = { version = "0.3", features = ["full"] }
tokio-serde = { version = "0.6", features = ["json"] }
tokio-util = { version = "0.3", features = ["codec"] }
tokio-util = { version = "0.4", features = ["codec"] }
env_logger = "0.6"
[lib]