about summary refs log tree commit diff
path: root/ops/yandex-cloud-rs/src
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-06-13T19·34+0300
committertazjin <tazjin@tvl.su>2023-06-14T10·06+0000
commited388f019aa84eca634dbfbd1cfed2e153780aa7 (patch)
treebfb92961c37dfd8a42625fd8a7c26335a37c57f7 /ops/yandex-cloud-rs/src
parent6f912f5ecf56ef296633bfc5b3bafd15035d39f3 (diff)
chore(ops/yandex-cloud-rs): re-export some tonic types r/6288
These are useful for downstream users of the library, who might not
need all the rest of the tonic stuff.

Change-Id: Iab4d941696ae3c7a33b25815b72f92598aa82b80
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8763
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops/yandex-cloud-rs/src')
-rw-r--r--ops/yandex-cloud-rs/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ops/yandex-cloud-rs/src/lib.rs b/ops/yandex-cloud-rs/src/lib.rs
index 4693cc60ef31..5e92f05417cd 100644
--- a/ops/yandex-cloud-rs/src/lib.rs
+++ b/ops/yandex-cloud-rs/src/lib.rs
@@ -39,6 +39,15 @@
 use tonic::metadata::{Ascii, MetadataValue};
 use tonic::service::Interceptor;
 
+/// Publicly re-export some types from tonic which users might need
+/// for implementing traits, or for naming concrete client types.
+pub mod tonic_exports {
+    pub use tonic::service::interceptor::InterceptedService;
+    pub use tonic::transport::Channel;
+    pub use tonic::transport::Endpoint;
+    pub use tonic::Status;
+}
+
 /// Helper trait for types or closures that can provide authentication
 /// tokens for Yandex Cloud.
 pub trait TokenProvider {