chore(types): Turn off unused features (#1266)

This commit is contained in:
tottoto
2023-02-14 23:47:43 +09:00
committed by GitHub
parent d9a8f10324
commit 3f4d7432b9
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -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"]}
+5 -2
View File
@@ -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;
+2
View File
@@ -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)