mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-01 00:51:25 +01:00
# 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
36 lines
938 B
TOML
36 lines
938 B
TOML
[package]
|
|
name = "tarpc-example-service"
|
|
version = "0.6.0"
|
|
authors = ["Tim Kuehn <tikue@google.com>"]
|
|
edition = "2018"
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/tarpc-example-service"
|
|
homepage = "https://github.com/google/tarpc"
|
|
repository = "https://github.com/google/tarpc"
|
|
keywords = ["rpc", "network", "server", "microservices", "example"]
|
|
categories = ["asynchronous", "network-programming"]
|
|
readme = "../README.md"
|
|
description = "An example server built on tarpc."
|
|
|
|
[dependencies]
|
|
clap = "2.0"
|
|
futures = "0.3"
|
|
serde = { version = "1.0" }
|
|
tarpc = { version = "0.22", path = "../tarpc", features = ["full"] }
|
|
tokio = { version = "0.3", features = ["full"] }
|
|
tokio-serde = { version = "0.6", features = ["json"] }
|
|
tokio-util = { version = "0.4", features = ["codec"] }
|
|
env_logger = "0.6"
|
|
|
|
[lib]
|
|
name = "service"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "server"
|
|
path = "src/server.rs"
|
|
|
|
[[bin]]
|
|
name = "client"
|
|
path = "src/client.rs"
|