diff --git a/tonic-types/Cargo.toml b/tonic-types/Cargo.toml index aeca3e7..3793d07 100644 --- a/tonic-types/Cargo.toml +++ b/tonic-types/Cargo.toml @@ -17,7 +17,7 @@ version = "0.6.1" [dependencies] prost = "0.11" prost-types = "0.11" -tonic = {version = "0.8", path = "../tonic"} +tonic = {version = "0.8", path = "../tonic", default-features = false} [dev-dependencies] -tonic-build = {version = "0.8", path = "../tonic-build", features = ["prost", "cleanup-markdown"]} +tonic-build = {version = "0.8", path = "../tonic-build", default-features = false, features = ["prost", "cleanup-markdown"]} diff --git a/tonic-types/src/richer_error/mod.rs b/tonic-types/src/richer_error/mod.rs index aeee649..9fd801b 100644 --- a/tonic-types/src/richer_error/mod.rs +++ b/tonic-types/src/richer_error/mod.rs @@ -1,6 +1,9 @@ -use prost::{bytes::BytesMut, DecodeError, Message}; +use prost::{ + bytes::{Bytes, BytesMut}, + DecodeError, Message, +}; use prost_types::Any; -use tonic::{codegen::Bytes, metadata::MetadataMap, Code}; +use tonic::{metadata::MetadataMap, Code}; mod error_details; mod std_messages; diff --git a/tonic-types/tests/bootstrap.rs b/tonic-types/tests/bootstrap.rs index 01c5dfd..2b15f17 100644 --- a/tonic-types/tests/bootstrap.rs +++ b/tonic-types/tests/bootstrap.rs @@ -10,6 +10,8 @@ fn bootstrap() { .join("generated"); tonic_build::configure() + .build_client(false) + .build_server(false) .out_dir(&out_dir) .file_descriptor_set_path(out_dir.join("types.bin")) .compile(iface_files, dirs)