use protox::prost::Message;
use tonic_prost_build::FileDescriptorSet;
pub fn rpc_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "rpc_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
pub fn remote_prover_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "remote_prover_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
#[cfg(feature = "internal")]
pub fn store_rpc_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "store_rpc_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
#[cfg(feature = "internal")]
pub fn store_ntx_builder_api_descriptor() -> FileDescriptorSet {
let bytes =
include_bytes!(concat!(env!("OUT_DIR"), "/", "store_ntx_builder_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
#[cfg(feature = "internal")]
pub fn store_block_producer_api_descriptor() -> FileDescriptorSet {
let bytes =
include_bytes!(concat!(env!("OUT_DIR"), "/", "store_block_producer_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
#[cfg(feature = "internal")]
pub fn block_producer_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "block_producer_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
pub fn validator_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "validator_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}
#[cfg(feature = "internal")]
pub fn ntx_builder_api_descriptor() -> FileDescriptorSet {
let bytes = include_bytes!(concat!(env!("OUT_DIR"), "/", "ntx_builder_file_descriptor.bin"));
FileDescriptorSet::decode(&bytes[..])
.expect("bytes should be a valid file descriptor created by build.rs")
}