| 60b131d2 | 15-Nov-2024 |
tottoto <[email protected]> |
feat: Add Body type (#2013) |
| be4e0e77 | 07-Oct-2024 |
tottoto <[email protected]> |
chore: Refactor empty body constructor (#1981)
* chore: Refactor empty body constructor
* chore: Deprecate empty_body api |
| 1470dfb9 | 27-Sep-2024 |
tottoto <[email protected]> |
chore: Generate file descriptor set constant directly (#1956) |
| 517b7fc9 | 26-Sep-2024 |
Dirkjan Ochtman <[email protected]> |
Use constants for header names (#1933)
* tonic: rename header name consts and make public
* tonic: use header name constants in more places |
| 6d93c1d0 | 23-Sep-2024 |
tottoto <[email protected]> |
chore: Make codegen independent from protoc (#1953) |
| 626b0947 | 09-Sep-2024 |
Alice Carroll <[email protected]> |
build: suppress `clippy::wildcard_imports` in generated code (#1937) |
| f7865372 | 09-Sep-2024 |
tottoto <[email protected]> |
chore(build): Remove unwrap from generated code (#1928) |
| 3a706b24 | 04-Sep-2024 |
tottoto <[email protected]> |
chore: Use Status constructor for each kind of status (#1913) |
| a8f012d6 | 31-Aug-2024 |
tottoto <[email protected]> |
chore: Update generated code (#1906) |
| 7fb40a98 | 20-Aug-2024 |
tottoto <[email protected]> |
chore: Remove unnecessary static lifetime (#1877) |
| e866b00b | 19-Aug-2024 |
Jacob Pratt <[email protected]> |
Remove unnecessary trait bounds from server (#1872) |
| d42daaf7 | 08-Aug-2024 |
Mikhail Katychev <[email protected]> |
Expose formatted service name as a `const fn` (#1684)
* expose service name as a const fn
* pub fn
* revert example
* updated const fn to be a binding
* updated with SERVICE_NAME const
* update
Expose formatted service name as a `const fn` (#1684)
* expose service name as a const fn
* pub fn
* revert example
* updated const fn to be a binding
* updated with SERVICE_NAME const
* updated codegen
* made SERVICE_NAME pub
show more ...
|
| 5016dd1f | 23-Jul-2024 |
WarrenS <[email protected]> |
Naming collisions with std::marker::Sync/Send (#1804)
* switched usage Sync and Send to their direct imports
* fix broken replacements
* Ran cargo run --package codegen
* update bin |
| 88c83def | 19-Jun-2024 |
Lucio Franco <[email protected]> |
chore: fix merge queue (#1735)
* chore: fix merge queue
* run codegen |
| 94d91dd8 | 19-Jun-2024 |
Gabriel Hansson <[email protected]> |
chore(codegen): Deprecate _Inner<T>. (#1647)
Removes a redundant clone in the `tower-service::Service::call()` implementation, and reduces the amount of generated code. Does not break any user facin
chore(codegen): Deprecate _Inner<T>. (#1647)
Removes a redundant clone in the `tower-service::Service::call()` implementation, and reduces the amount of generated code. Does not break any user facing API.
show more ...
|
| e2c506ac | 17-Jun-2024 |
Ivan Krivosheev <[email protected]> |
Add a `GRPC_CONTENT_TYPE` for "application/grpc". (#1733)
* Add a `GRPC_CONTENT_TYPE` for "application/grpc".
Currently defined in `tonic::metadata`. Would need guidance from maintainers for where
Add a `GRPC_CONTENT_TYPE` for "application/grpc". (#1733)
* Add a `GRPC_CONTENT_TYPE` for "application/grpc".
Currently defined in `tonic::metadata`. Would need guidance from maintainers for where it might be better located.
* Fixed tests
---------
Co-authored-by: gibbz00 <[email protected]>
show more ...
|
| b29f4668 | 29-May-2024 |
katelyn martin <[email protected]> |
tonic-reflection: use `v1` reflection protobuffer definitions (#1701)
this fixes #1685.
in penumbra-zone/penumbra#4392, we observed that tonic servers do not properly support reflection when ser
tonic-reflection: use `v1` reflection protobuffer definitions (#1701)
this fixes #1685.
in penumbra-zone/penumbra#4392, we observed that tonic servers do not properly support reflection when servicing a request sent by recent versions of [`grpcurl`], after [v1.8.8] began using `grpc.reflection.v1.ServerReflection`. (see fullstorydev/grpcurl#407)
these lead to an error regarding an unexpected status code, like this:
``` ❯ grpcurl --version grpcurl v1.9.1
❯ grpcurl -vv grpc.testnet.penumbra.zone:443 list Failed to list services: rpc error: code = Unknown desc = unexpected HTTP status code received from server: 405 (Method Not Allowed); malformed header: missing HTTP content-type ```
this adds the v1 reflection definition to `tonic-reflection`, which was observed as fixing these issues for our gRPC endpoint.
### changes
changes in this commet are as follows:
* vendors the `v1` definition of [`reflection.proto`][proto].
* renames the (deprecated) `v1alpha` definition to `reflection_v1alpha.proto`.
* `tonic_reflection::generated::grpc_reflection_v1` links to the generated Rust code (created by running `cargo run --package codegen`).
* `tonic_reflection::generated::FILE_DESCRIPTOR_SET` is replaced by `tonic_reflection::generated::{FILE_DESCRIPTOR_SET_V1ALPHA, FILE_DESCRIPTOR_SET_V1}`.
* `tonic_reflection::pb` now contains namespaced `tonic_reflection::pb::{v1alpha, v1}` submodules. (**NB: this is a breaking change to the public `tonic-reflection` API.**)
* `tonic_reflection::server` is updated to use the generated `tonic_reflection::pb::v1` code.
[v1.8.8]: https://github.com/fullstorydev/grpcurl/releases/tag/v1.8.8 [proto]: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1/reflection.proto [grpcurl]: https://github.com/fullstorydev/grpcurl
---
fixes: #1685 x-ref: penumbra-zone/penumbra#4392
Co-authored-by: Conor Schaefer <[email protected]>
show more ...
|
| 068421a0 | 25-Apr-2024 |
tottoto <[email protected]> |
chore: Update generated code (#1677)
* chore: Update generated code
* add allow dead_code for integ test
---------
Co-authored-by: Lucio Franco <[email protected]> |
| 333ea5af | 01-Sep-2023 |
tottoto <[email protected]> |
chore: Update generated code (#1484) |
| 7b2b0eea | 28-Aug-2023 |
tottoto <[email protected]> |
chore: Add generated code to module tree (#1480) |
| 60d776b0 | 02-Aug-2023 |
Lucio Franco <[email protected]> |
fix(codegen): Use stream type from codegen mod (#1446)
* fix(codegen): Use stream type from codegen mod
* Add generated code |
| c9c4acbc | 22-Jun-2023 |
tottoto <[email protected]> |
chore: Use cargo-udeps to check unused dependencies (#1364)
* chore: Use cargo-udeps to check unused dependencies
* Exclude uds example on windows
* Revert to use tokio_stream::Stream instead of f
chore: Use cargo-udeps to check unused dependencies (#1364)
* chore: Use cargo-udeps to check unused dependencies
* Exclude uds example on windows
* Revert to use tokio_stream::Stream instead of futures_core::Stream
* Replace all futures_core:Stream with tokio_stream::Stream
* chore(web): Replace futures_core::Stream with tokio_stream::Stream
* chore(web): Use std version ready instead of futures-core version
* chore(tonic): Use futures-core via futures-util
* Revert "chore(web): Use std version ready instead of futures-core version"
This reverts commit 9d9458d9e632613f35f34c877bc162b3a03967b6.
* chore(examples): Refactor dependencies
* chore(tonic): Use tokio-stream::iter
* chore(reflection): Use tokio-stream::iter
---------
Co-authored-by: Lucio Franco <[email protected]>
show more ...
|
| 4942dd4a | 19-Apr-2023 |
Auri <[email protected]> |
tonic-build: option to emit `Arc<Self>` as server receiver (#1352)
This implements an option to emit `Arc<Self>` instead of `&self` in server traits. This enables implementor to reference `Self` dat
tonic-build: option to emit `Arc<Self>` as server receiver (#1352)
This implements an option to emit `Arc<Self>` instead of `&self` in server traits. This enables implementor to reference `Self` data for indefinite duration, which may be useful for streaming requests.
Fixes: #1351
show more ...
|
| ff331199 | 30-Mar-2023 |
Lucio Franco <[email protected]> |
feat(core): Default encoding/decoding limits (#1335)
* feat(core): Default encoding/decoding limits
This PR adds new defaults for both client and server max encoding/decoding message size limits. B
feat(core): Default encoding/decoding limits (#1335)
* feat(core): Default encoding/decoding limits
This PR adds new defaults for both client and server max encoding/decoding message size limits. By default, the max message decoding size is `4MB` and the max message encoding size is `usize::MAX`.
This is follow up work from https://github.com/hyperium/tonic/pull/1274
BREAKING: Default max message encoding/decoding limits
* update generated code
show more ...
|
| 7a6b20d8 | 23-Feb-2023 |
林玮 (Jade Lin) <[email protected]> |
feat: add GrpcMethod extension into request for client (#1275)
* feat: add GrpcMethod extension into request for client
* refactor: change GrpcMethod fields into private and expose methods instead
feat: add GrpcMethod extension into request for client (#1275)
* feat: add GrpcMethod extension into request for client
* refactor: change GrpcMethod fields into private and expose methods instead
* refactor: hide GrpcMethod::new in doc
---------
Co-authored-by: Lucio Franco <[email protected]>
show more ...
|