46 Commits

Author SHA1 Message Date
Lucio Franco 1934825ff5 chore: Fix ci tests 2023-04-24 14:52:25 -04:00
Lucio Franco c09fc23088 chore: Fix cargo deny warnings (#1374) 2023-04-24 17:41:43 +00:00
tottoto 44ccf49d8e chore(interop): Remove unnecessary asyncronous file io to read data (#1336) 2023-03-31 16:21:53 +00:00
tottoto b3567a394f chore: Add cargo-machete to detect unused dependencies (#1259) 2023-02-08 09:08:21 -05:00
tottoto 2e3e9acf7b chore(interop): Use pico-args instead of clap (#1242) 2023-02-07 09:45:32 -05:00
tottoto 0ac0ce8ce7 chore: Remove unused dependencies (#1244) 2023-02-04 05:12:17 -05:00
tottoto 4c69157cef chore(interop): Lock clap version to 4.0 (#1240)
* chore(interop): Lock clap version to 4.0

* chore(interop): Lock clap_lex to 0.3.0
2023-01-17 14:24:36 -05:00
tottoto bf22a740c3 chore: Update to 2021 edition (#1188) 2022-12-13 15:16:49 -05:00
tottoto 363c04a2e8 chore: Remove unused bytes from dependencies (#1186) 2022-12-13 13:06:13 -05:00
tottoto 2dd09c02bd chore: Fix clippy lint (#1181) 2022-12-13 11:29:29 -05:00
tottoto 8318e756d4 chore(interop): Update to console 0.15 (#1167) 2022-11-29 14:00:10 -05:00
tottoto b65b52baf0 chore(interop): Update clap to 4.0.26 (#1162) 2022-11-28 10:39:34 -05:00
Lucio Franco ec359ba35f chore: Prepare 0.8 release (#1044) 2022-07-29 16:45:57 -04:00
Marcus Griep d9f5c75112 chore: update clap dependency, fix deprecations (#1016) 2022-06-13 16:34:27 -04:00
Adam Chalmers edc5a0d88d feat: Add TryFrom implementations for MetadataValue (#990)
Co-authored-by: Adam Chalmers <adamschalmers@gmail.com>
2022-05-02 13:38:42 -04:00
tottoto c0970521f9 chore(interop): Use clap rename_all option instead of lint allowing (#957) 2022-04-01 11:25:09 -04:00
Jesse Szwedko c78274e3fe feat: Update prost to 0.10 (#948) 2022-03-30 10:43:06 -04:00
Sylwester Rąpała c9e78c4d65 chore: Fulfill MIT license requirments (#916) 2022-02-18 13:56:47 -05:00
Lucio Franco 0f7344a75f chore(interop): Fix deprecated clap arg (#914) 2022-02-17 16:47:41 -05:00
tottoto a542bf4dc0 chore(interop): Change structopt to clap (#882) 2022-02-15 11:07:08 -05:00
tottoto daf406dd2b chore: Update tracing-subscriber to 0.3 (#873) 2021-12-30 09:53:02 +01:00
David Pedersen 101f2f76d4 chore: revert to 2018 edition (#847)
Fixes https://github.com/hyperium/tonic/issues/843
2021-12-07 09:49:07 +01:00
Lucio Franco 23c1392fb7 fix(tonic): Remove Sync requirement for streams (#804) 2021-10-24 21:48:05 -04:00
Lucio Franco 1f3df8db9e chore: Upgrade to 2021 edition (#808) 2021-10-24 21:12:20 -04:00
Eliza Weisman 09805ece45 feat: Update prost and friends to 0.9 (#791) 2021-10-19 10:59:28 -04:00
David Pedersen acdb3273bb chore: update prost, and related crates, to 0.8 (#703)
* chore: update prost, and related crates, to 0.8

Updates prost, prost-derive, prost-build, and prost-types to 0.8.

* Update the last few places
2021-07-08 15:02:02 -04: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
Quentin Perez fdda5ae26a Upgrade to Tokio 1.0.0 ecosystem (#530)
* Upgrade Tonic to Tokio 1.0

Work in progress for updating Tonic to Tokio 1.0. Since tower has not
been released to crates.io, a git dependency is taken instead.

* Upgrade Tonic to Tokio 1.0 phase 2

* tonic: remove tower-* deps

* Apply suggestions from code review

Co-authored-by: Ed Marshall <marshaled@protonmail.com>
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2021-01-11 12:18:34 -05:00
Juan Alvarez 0c69c378fd chore: clippy lints (#467)
* chore: clippy lints
2020-09-29 14:38:49 -05:00
Juan Alvarez cea990b1ea run go client -> rust server interop tests (#446) 2020-09-22 16:24:26 -05:00
Juan Alvarez 48d5248925 chore: Update interop go binaries (#440) 2020-08-31 10:23:50 -05:00
Juan Alvarez ca8e597e95 fix(interop) fix failing interop test with go client (#442)
* fix failing interop test

* do not run go client when --use_tls is set
2020-08-31 10:23:12 -05:00
Johan Andersson 3b9d6a6262 fix(transport): Propagate errors in tls_config instead of unwrap/panic (#385)
* Propagate errors in tls_config instead of unwrap

Ran into `tls_connector` failing and causing our app to panic and shutdown as it seems there wasn't any way to avoid panicking in `tls_config`.

So after talking to @LucioFranco briefly `tls_config` now returns a `Result` instead and propagates errors to the caller, where they can be handled.

* Fix compile warning when tls feature is disabled
2020-07-06 09:18:10 -04:00
Lucio Franco 3cba9f5f6f chore: Fix feature flags and build docs (#311)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-03-30 12:02:10 -04:00
Lucio Franco 2e082f8b3e chore(build): Refactor codegen traits (#302)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-03-29 12:57:11 -04:00
Gyusun Yeom f65cda1ea0 feat(build): Decouple codgen from prost (#170) 2020-03-01 13:52:31 -05:00
Juan Alvarez 6ee2ed9b4f chore: rename ServiceName -> NamedService (#233)
BREAKING CHANGE: Rename `ServiceName` to `NamedService`.
2020-01-13 21:41:24 -05:00
Lucio Franco eba7ec7b32 feat: Add gRPC interceptors (#232)
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`.
2020-01-13 21:26:08 -05:00
Marcel dadc8186c2 chore: Upgrade to prost, prost-build and prost-derive 0.6 (#230) (#231) 2020-01-13 09:40:57 -05:00
Lucio Franco 6673f91f1f chore: Remove required bytes dep and clean up deny (#227)
* chore: Remove required bytes dep and clean up deny

* Fix interop test cli args
2020-01-11 12:48:24 -08:00
Adam Jacob 8997f47b6d chore: Upgrade to prost master and bytes 0.5 (#224)
This upgrades tonic to prost's master branch, and moves everything to
bytes 0.5.
2020-01-11 11:05:08 -08:00
Lucio Franco 8efdbb4631 chore: Use released version of tower (#199)
* chore: Use released version of tower

* Update the rest
2019-12-19 18:31:40 -05:00
Juan Alvarez 3a5c66d5f2 fix(build): snake_case service names (#190) 2019-12-14 15:08:28 -05:00
Lucio Franco 82facb6283 chore: Apply clippy (#189) 2019-12-13 23:55:49 -05:00
Lucio Franco 502491a590 fix(transport): Remove with_rustls for tls config (#188) 2019-12-13 20:31:22 -05:00
Lucio Franco d9a481baef chore: Reorganize examples and interop crates (#180)
* chore: Reorganize examples and interop crates

* fix interop tests
2019-12-12 11:53:15 -05:00