From d905bc159148b2fafbec97d6323b7fed7772ffc3 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Wed, 11 Dec 2019 20:31:52 -0800 Subject: [PATCH] Prepare for tarpc release v0.20.0 --- RELEASES.md | 10 ++++++++++ example-service/Cargo.toml | 2 +- plugins/Cargo.toml | 2 +- tarpc/Cargo.toml | 4 ++-- tarpc/src/lib.rs | 12 ++++-------- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 999a845..51be92c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,13 @@ +## 0.20.0 (2019-12-11) + +### Breaking Changes + +1. tarpc has updated its tokio dependency to the latest 0.2 version. +2. The tarpc crates have been unified into just `tarpc`, with new Cargo features to enable + functionality. + - The bincode-transport and json-transport crates are deprecated and superseded by + the `serde_transport` module, which unifies much of the logic present in both crates. + ## 0.13.0 (2018-10-16) ### Breaking Changes diff --git a/example-service/Cargo.toml b/example-service/Cargo.toml index 3782574..b8f1435 100644 --- a/example-service/Cargo.toml +++ b/example-service/Cargo.toml @@ -16,7 +16,7 @@ description = "An example server built on tarpc." clap = "2.0" futures = "0.3" serde = { version = "1.0" } -tarpc = { version = "0.18", path = "../tarpc", features = ["full"] } +tarpc = { version = "0.20", path = "../tarpc", features = ["full"] } tokio = { version = "0.2", features = ["full"] } tokio-serde = { version = "0.6", features = ["json"] } env_logger = "0.6" diff --git a/plugins/Cargo.toml b/plugins/Cargo.toml index 50ea355..30e68fe 100644 --- a/plugins/Cargo.toml +++ b/plugins/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tarpc-plugins" -version = "0.5.1" +version = "0.7.0" authors = ["Adam Wright ", "Tim Kuehn "] edition = "2018" license = "MIT" diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 3e70db3..e7af6b3 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tarpc" -version = "0.18.0" +version = "0.20.0" authors = ["Adam Wright ", "Tim Kuehn "] edition = "2018" license = "MIT" @@ -36,7 +36,7 @@ rand = "0.7" tokio = { version = "0.2", features = ["time"] } serde = { optional = true, version = "1.0", features = ["derive"] } tokio-util = { optional = true, version = "0.2" } -tarpc-plugins = { path = "../plugins" } +tarpc-plugins = { path = "../plugins", version = "0.7" } tokio-serde = { optional = true, version = "0.6" } [dev-dependencies] diff --git a/tarpc/src/lib.rs b/tarpc/src/lib.rs index ae23496..2e20321 100644 --- a/tarpc/src/lib.rs +++ b/tarpc/src/lib.rs @@ -50,7 +50,7 @@ //! Add to your `Cargo.toml` dependencies: //! //! ```toml -//! tarpc = "0.18.0" +//! tarpc = "0.20.0" //! ``` //! //! The `tarpc::service` attribute expands to a collection of items that form an rpc service. @@ -134,13 +134,9 @@ //! ``` //! //! Lastly let's write our `main` that will start the server. While this example uses an -//! [in-process -//! channel](https://docs.rs/tarpc/0.18.0/tarpc/transport/channel/struct.UnboundedChannel.html), -//! tarpc also ships -//! [bincode](https://docs.rs/tarpc-bincode-transport/0.7.0/tarpc_bincode_transport/) -//! and -//! [JSON](https://docs.rs/tarpc-json-transport/0.1.0/tarpc_json_transport) -//! tokio-net based TCP transports that are generic over all serializable types. +//! [in-process channel](rpc::transport::channel), tarpc also ships a generic [`serde_transport`] +//! behind the `serde-transport` feature, with additional [TCP](serde_transport::tcp) functionality +//! available behind the `tcp` feature. //! //! ```rust //! # extern crate futures;