mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-29 07:40:14 +01:00
tokio 0.2.0-alpha.4
This commit is contained in:
@@ -71,8 +71,6 @@ For a more real-world example, see [example-service](example-service).
|
||||
First, let's set up the dependencies and service definition.
|
||||
|
||||
```rust
|
||||
#![feature(async_await)]
|
||||
|
||||
use futures::{
|
||||
future::{self, Ready},
|
||||
prelude::*,
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
//! A TCP [`Transport`] that serializes as JSON.
|
||||
|
||||
#![feature(async_await)]
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use futures::{compat::*, prelude::*, ready};
|
||||
|
||||
@@ -24,10 +24,10 @@ humantime = "1.0"
|
||||
log = "0.4"
|
||||
pin-utils = "0.1.0-alpha.4"
|
||||
rand = "0.7"
|
||||
tokio-timer = "0.3.0-alpha.2"
|
||||
tokio-timer = "0.3.0-alpha.4"
|
||||
trace = { package = "tarpc-trace", version = "0.2", path = "../trace" }
|
||||
serde = { optional = true, version = "1.0" }
|
||||
tokio = { optional = true, version = "0.2.0-alpha.3" }
|
||||
tokio = { optional = true, version = "0.2.0-alpha.4" }
|
||||
|
||||
[dev-dependencies]
|
||||
futures-test-preview = { version = "0.3.0-alpha.18" }
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://opensource.org/licenses/MIT.
|
||||
|
||||
#![feature(weak_counts, non_exhaustive, async_await, trait_alias)]
|
||||
#![feature(weak_counts, non_exhaustive, trait_alias)]
|
||||
#![deny(missing_docs, missing_debug_implementations)]
|
||||
|
||||
//! An RPC framework providing client and server.
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
//! First, let's set up the dependencies and service definition.
|
||||
//!
|
||||
//! ```rust
|
||||
//! #![feature(async_await)]
|
||||
//! # extern crate futures;
|
||||
//!
|
||||
//! use futures::{
|
||||
@@ -100,7 +99,6 @@
|
||||
//! implement it for our Server struct.
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(async_await)]
|
||||
//! # extern crate futures;
|
||||
//! # use futures::{
|
||||
//! # future::{self, Ready},
|
||||
@@ -143,7 +141,6 @@
|
||||
//! that uses bincode over TCP.
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(async_await)]
|
||||
//! # extern crate futures;
|
||||
//! # use futures::{
|
||||
//! # future::{self, Ready},
|
||||
@@ -214,7 +211,6 @@ pub use rpc::*;
|
||||
/// Rpc methods are specified, mirroring trait syntax:
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # fn main() {}
|
||||
/// #[tarpc::service]
|
||||
/// trait Service {
|
||||
|
||||
Reference in New Issue
Block a user