From 6155dbbf2903153b99b196f4ebee212df2358c63 Mon Sep 17 00:00:00 2001 From: Aarash Heydari Date: Fri, 21 Oct 2022 16:25:28 -0400 Subject: [PATCH] Export --- tonic-web/src/lib.rs | 2 +- tonic-web/src/service.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tonic-web/src/lib.rs b/tonic-web/src/lib.rs index eb46b3d04..954775b57 100644 --- a/tonic-web/src/lib.rs +++ b/tonic-web/src/lib.rs @@ -88,13 +88,13 @@ #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] pub use config::Config; +pub use service::GrpcWeb; mod call; mod config; mod cors; mod service; -use crate::service::GrpcWeb; use std::future::Future; use std::pin::Pin; use tonic::body::BoxBody; diff --git a/tonic-web/src/service.rs b/tonic-web/src/service.rs index 03f31b221..92a04a053 100644 --- a/tonic-web/src/service.rs +++ b/tonic-web/src/service.rs @@ -15,6 +15,7 @@ use crate::{BoxError, BoxFuture, Config}; const GRPC: &str = "application/grpc"; +/// A wrapper around tonic services enabling them to handle grpc-web requests #[derive(Debug, Clone)] pub struct GrpcWeb { inner: S,