chore(types): Turn off unused features (#1266)
This commit is contained in:
@@ -17,7 +17,7 @@ version = "0.6.1"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
prost = "0.11"
|
prost = "0.11"
|
||||||
prost-types = "0.11"
|
prost-types = "0.11"
|
||||||
tonic = {version = "0.8", path = "../tonic"}
|
tonic = {version = "0.8", path = "../tonic", default-features = false}
|
||||||
|
|
||||||
[dev-dependencies]
|
[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"]}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
use prost::{bytes::BytesMut, DecodeError, Message};
|
use prost::{
|
||||||
|
bytes::{Bytes, BytesMut},
|
||||||
|
DecodeError, Message,
|
||||||
|
};
|
||||||
use prost_types::Any;
|
use prost_types::Any;
|
||||||
use tonic::{codegen::Bytes, metadata::MetadataMap, Code};
|
use tonic::{metadata::MetadataMap, Code};
|
||||||
|
|
||||||
mod error_details;
|
mod error_details;
|
||||||
mod std_messages;
|
mod std_messages;
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ fn bootstrap() {
|
|||||||
.join("generated");
|
.join("generated");
|
||||||
|
|
||||||
tonic_build::configure()
|
tonic_build::configure()
|
||||||
|
.build_client(false)
|
||||||
|
.build_server(false)
|
||||||
.out_dir(&out_dir)
|
.out_dir(&out_dir)
|
||||||
.file_descriptor_set_path(out_dir.join("types.bin"))
|
.file_descriptor_set_path(out_dir.join("types.bin"))
|
||||||
.compile(iface_files, dirs)
|
.compile(iface_files, dirs)
|
||||||
|
|||||||
Reference in New Issue
Block a user