feat: add gRPC reflection service (#17)
* feat: add grpc reflection * feat: add grpc reflection
This commit is contained in:
@@ -12,8 +12,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
let out_dir = PathBuf::from(
|
||||
std::env::var("OUT_DIR")
|
||||
.expect("cargo built-in env value 'OUT_DIR' must be set during compilation"),
|
||||
);
|
||||
|
||||
tonic_build::configure()
|
||||
.file_descriptor_set_path(out_dir.join("greptime_grpc_desc.bin"))
|
||||
.compile(
|
||||
&[
|
||||
"proto/greptime/v1/database.proto",
|
||||
|
||||
Reference in New Issue
Block a user