Commit Graph

376 Commits

Author SHA1 Message Date
Juan Alvarez cea990b1ea run go client -> rust server interop tests (#446) 2020-09-22 16:24:26 -05:00
linxiulei c7fd9d4586 chore(docs): Fix ClientTlsConfig::domain_name docs (#449)
Co-authored-by: Eric Lin <ericlinxl@fb.com>
2020-09-07 10:56:50 -05:00
Amanjeev Sethi 92a7cc86a6 tonic-build: (docs) adds NixOS related hints (#444) 2020-08-31 13:05:53 -04: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
Juan Alvarez 26ce9d12bf fix(transport) Do not panic when building and Endpoint with an invali… (#438)
BREAKING CHANGE: `TryFrom` API has been changed.
2020-08-31 10:02:40 -04:00
Ximo Guanter 62c1230117 fix(build): Add content-type for generated unimplemented service (#441) 2020-08-31 09:56:58 -04:00
Juan Alvarez 40e64b53a7 chore: skip duplicate wasi crate from cargo deny check (#439) 2020-08-29 11:41:38 -05:00
Jens Claes 594a542b8a fix(transport): Add content-type for Unimplemented (#434)
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2020-08-21 10:42:41 -04:00
Ximo Guanter bec4936daf doc(transport): improve connect_with_connector doc (#432)
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2020-08-20 16:14:35 -04:00
T.J. Telan 37f6733f85 feat(transport): Add Router::into_service (#419)
Co-authored-by: Danny Hua <danny@42layers.io>
2020-08-20 15:11:31 -04:00
Lucio Franco 90858926b6 chore: Prepare 0.3.1 release (#436) 2020-08-20 10:49:12 -04:00
Lucio Franco 73938e1e0a chore: Fix typo in uds example (#417)
Closes #350
2020-07-27 15:38:47 -04:00
Lucio Franco 2ea17b2ecf fix(transport): Return connection error on Channel::connect (#413)
Before this fix, if the connect phase of the transport failed before
ever establishing a connection, we would never return the error until
the first call to send a request. This PR changes that behavior to only
forward the error to the call method if we have ever made a connection
before. If we have never established a connection before then
`Reconnect` will return an error on the call to `poll_ready`.

Fixes #403
2020-07-27 12:44:11 -04:00
Harry Barber 5bd8a04baf Fix typo (#405) 2020-07-27 12:33:24 -04:00
Lucio Franco 8212afdf85 chore: Prepare tonic-health release 0.2.0 (#411) 2020-07-23 15:41:26 -04:00
Lucio Franco 2022fa9c53 chore: Ignore ansi_term in deny.toml (#406) 2020-07-20 16:58:28 -04:00
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