feat(types): Expose FILE_DESCRIPTOR_SET (#1210)
This commit is contained in:
@@ -20,4 +20,4 @@ prost-types = "0.11"
|
||||
tonic = {version = "0.8", path = "../tonic"}
|
||||
|
||||
[dev-dependencies]
|
||||
tonic-build = {version = "0.8", path = "../tonic-build", features = ["prost"]}
|
||||
tonic-build = {version = "0.8", path = "../tonic-build", features = ["prost", "cleanup-markdown"]}
|
||||
|
||||
Binary file not shown.
@@ -24,6 +24,9 @@
|
||||
/// Useful protobuf types
|
||||
pub mod pb {
|
||||
include!("generated/google.rpc.rs");
|
||||
|
||||
/// Byte encoded FILE_DESCRIPTOR_SET.
|
||||
pub const FILE_DESCRIPTOR_SET: &[u8] = include_bytes!("generated/types.bin");
|
||||
}
|
||||
|
||||
pub use pb::Status;
|
||||
|
||||
@@ -11,6 +11,7 @@ fn bootstrap() {
|
||||
|
||||
tonic_build::configure()
|
||||
.out_dir(format!("{}", out_dir.display()))
|
||||
.file_descriptor_set_path(out_dir.join("types.bin"))
|
||||
.compile(iface_files, dirs)
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user