This change introduces proper gRPC interceptors that are avilable regardless of the transport used. Each codegen service now produces an additional method called `with_interceptor` that accepts a `Interceptor`. All examples have been updated to use this new style and interop has a custom `tower::Service` middleware to echo the headers. There is also a new `interceptor` example that shows basic usage. BREAKING CHANGE: removed `interceptor_fn` and `intercep_headers_fn` from `transport` in favor of using `tonic::Interceptor`.
13 lines
204 B
TOML
13 lines
204 B
TOML
[workspace]
|
|
members = [
|
|
"tonic",
|
|
"tonic-build",
|
|
# Non-published crates
|
|
"examples",
|
|
"interop",
|
|
# Tests
|
|
"tests/included_service",
|
|
"tests/same_name",
|
|
"tests/wellknown",
|
|
]
|