Commit Graph

359 Commits

Author SHA1 Message Date
L1AN0 96db606908 Fix typo in doc. (#398) 2020-07-14 16:41:39 -04:00
Lucio Franco ecb1920782 fix doc link 2020-07-13 13:02:44 -04:00
Lucio Franco 62b8ab0b51 chore: Prepare 0.3.0 release (#399)
* chore: Prepare 0.3.0 release

* update changelog

* fix builds

* Update breaking changes
2020-07-13 13:00:54 -04:00
Kaleb Elwert 570c606397 chore: Upgrade base64 and tokio-rustls packages (#397) 2020-07-10 23:10:15 -05:00
Lucio Franco a567f17e52 chore: Prepare 0.2.2 release (#396) 2020-07-10 12:59:22 -04:00
Lucio Franco 2c4c544d90 fix: Status::details leaking base64 encoding (#395)
Fixes #379
2020-07-10 12:40:55 -04:00
Harry Barber 2b997b0c5f feat(transport): Add optional service methods (#275) 2020-07-10 12:39:52 -04:00
Eliza Weisman 034c850254 examples: update to tracing 0.1.16, use #[instrument] (#354)
* examples: update to `tracing` 0.1.14, use `#[instrument]`

Now that `tracing-attributes`'s `#[instrument]` macro plays nicely with
`async-trait`, we can update the tracing example to use `instrument`.
This lets us simplify the events emitted in the example.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

* feat(transport): Dynamic load balancing (#341)

* Fix typo (#356)

Co-authored-by: Dawid Nowak <nowakd@gmail.com>
Co-authored-by: Paulo Duarte <paulo@duarteweb.com>
2020-07-10 11:59:18 -04:00
Lucio Franco 98bcc339b1 Rename get_uri to uri (#393)
* Rename `get_uri` to `uri`

* Fix doc test
2020-07-10 11:45:33 -04:00
Lucio Franco c9b3c7f11c Fix hyper_warp example warnings (#390) 2020-07-10 11:28:13 -04:00
Dan Burkert ec9046dfc2 feat(transport): Add Endpoint::connect_lazy method (#392)
Fixes #167
2020-07-10 10:46:33 -04:00
Lucio Franco ea7fe66b14 feat(types): Add tonic-types crate (#391) 2020-07-08 18:01:16 -04:00
Mikail Bagishov ab1de44771 feat: Add Display implementation for Code (#386) 2020-07-06 14:07:08 -04:00
Sarfaraz Nawaz d68dd36532 feat(codec): Improve compression flag log (#374) 2020-07-06 12:00:48 -04:00
Tunahan Karlıbaş 9c954e0908 Make the cast in Bidirectional stream smaller (#387)
Since we already define the type we can just use it instead of writing it again
2020-07-06 11:58:07 -04:00
Lucio Franco 9c50d759de Fix deny warnings (#389) 2020-07-06 11:53:30 -04: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
Tyler Hawkes f085aba302 fix(build): Allow empty packages (#382)
Fixes #381
2020-06-29 11:24:47 -04:00
Kaleb Elwert 327b4fffa3 feat: Add Status::to_http (#376) 2020-06-25 13:08:10 -04:00
Kaleb Elwert 80e90e3b5d Add tower server example (#375)
Note that this also adds `impl From<Status> for http::Response<BoxBody>`
in order to make writing middleware which can return an error much
easier.
2020-06-22 12:04:02 -04:00
Sherlock Holo 54d7a7af6b feat: add new method get_uri for Endpoint (#371) 2020-06-16 18:22:12 -04:00
Caio 761029444f chore: Use new instead of with_rustls (#369) 2020-06-15 12:21:41 -04:00
Taiki Endo 5bda615632 fix: Remove uses of pin_project::project attribute (#367)
pin-project will deprecate the project attribute due to some unfixable
limitations.

Refs: https://github.com/taiki-e/pin-project/issues/225
2020-06-09 13:09:35 -04:00
Nick Law 4f839107b9 chore(docs): fix incorrect proto path in helloworld tutorial (#368)
This change reverts #366. The `proto/` directory, as described in the guide,
is created under the root of the crate. Not under `src/`.

I've also included a fix to the `grpcurl` endpoint.
2020-06-09 13:08:39 -04:00
Paul-Sebastian Manole 02499fdfd3 chore: wrong path for call to compile_protos (#366)
Fixed wrong path "proto/helloworld.proto" for `compile_protos` first argument. `build.rs` being in the project root, means the correct path should be "src/proto/helloworld.proto".
2020-06-03 12:10:07 -04:00
Paulo Duarte 253984f204 Fix typo (#356) 2020-05-18 17:09:46 -04:00
Dawid Nowak 85ae0a4733 feat(transport): Dynamic load balancing (#341) 2020-05-15 15:03:28 -04:00
Dmitry Shuranov 372da52e96 feat: Add metadata to error responses (#348) 2020-05-10 11:46:45 -04:00
Kitsu 8cd6f05064 fix(build): Make generated server service public (#347) 2020-05-08 10:16:52 -04:00
Lucio Franco 59ce1d2590 chore: Prepare 0.2.1 release (#346) 2020-05-07 15:46:45 -04:00
Lucio Franco e683ffef1f fix: base64 encode details header (#345) 2020-05-07 15:31:26 -04:00
Spencer Judge 68d2ab3339 Add some info about concurrent usage to client mod (#328) 2020-05-05 13:27:53 -04:00
Johan Thomsen 99fbe22e7c fix(transport): Apply tls-connector for discovery when applicable (#334) (#338) 2020-05-05 13:19:04 -04:00
Johan Andersson 59c4555f54 chore: Upgrade cargo-deny-action v0 -> v1 (#336) 2020-05-04 12:16:26 -04:00
thisKai f6ecaff0de chore(example): Autoreloading server example (#316)
* Create an example of an autoreloading server

* Document the autoreloading server example

* Format autoreloading server example

* Add note about cargo-watch in the examples readme
2020-04-09 17:55:53 -04:00
IvanV d2ad8df629 feat(transport): Add AsRef impl for Certificate (#326)
Co-authored-by: IvanV <ivanv@tbtl.com>
2020-04-09 13:41:54 -04:00
Yonathan Randolph 5d56daa721 fix(build): Remove ambiguity in service method call (#327)
When calling methods on Arc<MyService> where the method is also defined on Arc (e.g. drop and clone), calling inner.#method_ident(request) will actually attempt to call the Arc method instead of the method on the service, resulting in a compile error. This change removes the ambiguity by dereferencing the inner Arc.
2020-04-09 13:40:26 -04:00
Lucio Franco 70b345fc98 Update LICENSE 2020-04-09 10:53:33 -04:00
Lucio Franco 9ebc6f6667 chore: Add tonic-health readme`
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-01 14:45:05 -04:00
Lucio Franco 6f378e2bd0 chore: Prepare 0.2 release (#321)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-01 14:34:51 -04:00
Spencer Judge b7860cc734 chore: Update blocking example drop order (#313) 2020-04-01 14:01:38 -04:00
Lucio Franco 04a8c0c82a fix(transport): Handle tls accepting on task (#320)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-01 13:02:19 -04:00
Lucio Franco e5b1f8a172 chore: Rename internal uuid crate (#319)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-01 12:35:11 -04:00
Lucio Franco 202093c317 feat(build): Add support for custom prost config (#318)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-01 11:58:53 -04:00
Lucio Franco 555323630a chore: Update tokio-util 0.3 (#315)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2020-03-31 15:06:52 -04:00
James Nugent 6dbe88d445 fix(build): Implement Debug for client struct
Fixes #298.
2020-03-30 17:06:31 -05: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
James Nugent 59c7788846 fix(health): Set referenced version of tonic 2020-03-30 09:47:04 -05:00
James Nugent da92dbf8aa feat(health): Add tonic-health server impl
This commit adds a new crate `tonic-health` which implements the
[standard GRPC Health Checking][checking] protocol.

Currently there is only a server implementation, though others have
alluded in the discussion in #135 that client implementations exist
which could also be imported as necessary.

A example server has also been added - once the client work is done a
client for this should be added also.

[checking]: https://github.com/grpc/grpc/blob/master/doc/health-checking.md

Fixes #135.
2020-03-30 09:33:02 -05:00
Johan Andersson 25569e007b chore(transport): Upgrade rustls and base64 (#251) 2020-03-30 10:01:48 -04:00