Fix tests

This commit is contained in:
Lucio Franco
2019-09-30 19:13:27 -04:00
parent 1c751d4404
commit c5042b14c3
3 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
[features]
default = ["transport", "codegen"]
codegen = ["async-trait", "prost", "prost-derive", "bytes"]
codegen = ["async-trait", "prost", "prost-derive"]
transport = [
"hyper",
"tokio",
@@ -38,6 +38,7 @@ rustls = ["tokio-rustls", "tls"]
tls = []
[dependencies]
bytes = "0.4"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
tracing = "0.1"
@@ -57,7 +58,6 @@ prost-derive = { version = "0.5", optional = true }
# codegen
async-trait = { version = "0.1.13", optional = true }
bytes = {version = "0.4", optional = true}
# transport
hyper = { git = "https://github.com/hyperium/hyper", features = ["unstable-stream"], optional = true, rev = "2b0405c48c10bca7893c30ea960ac20a41a8578f" }
+1 -1
View File
@@ -35,6 +35,6 @@ impl std::fmt::Display for Never {
impl std::error::Error for Never {}
pub use bytes::*;
pub use prost::*;
pub use prost_derive::*;
pub use bytes::*;
+1 -6
View File
@@ -1,11 +1,6 @@
/// Include generated proto server and client items.
///
/// # Example
/// ```rust,no_run
/// pub mod hello_world {
/// tonic::include_proto!("helloworld");
/// }
/// ```
/// You must specify the gRPC package name.
#[macro_export]
macro_rules! include_proto {
($package: tt) => {