7 Commits

Author SHA1 Message Date
tottoto d2542dc034 feat: Rename api related to protobuf (#1224) 2023-01-10 11:16:57 -05:00
tottoto b6d9fd69ae chore(reflection): Add file descriptor set generation (#1213)
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2023-01-05 12:03:26 -05:00
tottoto c772a786a9 chore: Refactor bootstrap test (#1216)
* chore: Remove unnecessary conversions to string in bootstrap tests

* chore: Simplify assertion in bootstrap tests
2023-01-04 14:19:28 -05:00
Artem Vorotnikov 933f560735 reflection: commit generated code (#1151) 2022-11-16 16:13:59 -05:00
David Pedersen 4b0ece6d28 chore: fix clippy lints (#707) 2021-07-09 18:23:55 +02:00
David Pedersen 4dda4cbcca feat(tonic): Use BoxBody from http-body crate (#622)
As of `http-body` 0.4.1 its has had a `BoxBody` type similar to
`tonic::body::BoxBody`. It also has `Empty` and `Body::map_{data,err}`.

That means all the custom body things we had in tonic can basically be
replaced with that.

Note that this is a breaking change so we should merge this next time we
decide to ship a breaking release.

The breaking changes are:

- `tonic::body::Body` has been removed. I think its fine for users to
depend directly on `http-body` if they need this trait.
- `tonic::body::BoxBody` is now just a type alias for
`http_body::combinators::BoxBody<Bytes, Status>`. So the methods it
previously had are gone. The replacements are
  - `tonic::body::Body::new` -> `http_body::Body::boxed`
  - `tonic::body::Body::map_from` -> `http_body::Body::map_data` and
  `http_body::Body::map_err` depending on which part you want to map.
  - `tonic::body::Body::empty` -> `http_body::Empty`

Additionally a `Sync` bound has been added to a few methods. I actually
don't think this is a breaking change because the old
`tonic::body::Body` trait had `Sync` as a supertrait meaning the `Sync`
requirement was already there.

Fixes https://github.com/hyperium/tonic/issues/557
2021-05-18 10:41:21 +02:00
James Nugent c54f24721c feat: Implement gRPC Reflection Service (#340)
Co-authored-by: Samani G. Gikandi <samani@gojulas.com>
2021-02-16 11:07:51 -05:00