Commit Graph
100 Commits
Author SHA1 Message Date
Lucio Franco 1934825ff5 chore: Fix ci tests 2023-04-24 14:52:25 -04:00
Lucio Franco 30b8f07b9f chore: Add MPL back to deny 2023-04-24 14:22:11 -04:00
Lucio FrancoandGitHub c09fc23088 chore: Fix cargo deny warnings (#1374) 2023-04-24 17:41:43 +00:00
Lucio FrancoandGitHub f276934d22 chore: Add streaming response limit test (#1363) 2023-04-17 15:19:51 +00:00
Lucio FrancoandGitHub ae75801604 chore: Prepare 0.9.2 release (#1362) 2023-04-17 15:16:32 +00:00
Lucio Franco fa06bafcc0 chore: Fix perms for publish script 2023-04-03 10:35:31 -04:00
Lucio FrancoandGitHub 01cba4992c chore: Prepare 0.9.1 release (#1343)
* Update documentation url in cargo tomls

* Bump versions to 0.9.1

* Update guides

* Add prepare/publish scripts

* Update changelog
2023-04-03 14:31:03 +00:00
Lucio FrancoandGitHub 3a497f2ca2 chore: Prepare v0.9.0 release (#1337) 2023-03-31 18:41:53 +00:00
Lucio FrancoandGitHub ff331199e4 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
2023-03-30 16:59:08 +00:00
Lucio FrancoandGitHub a9db219e50 fix(web): Fix enable and update docs (#1326)
* fix(web): Fix `enable` and update docs

* fix example, update deny

* fix namedservice path
2023-03-20 17:04:46 +00:00
Lucio FrancoandGitHub ddec9e34f2 chore(examples): Add Cors to grpc web server (#1320) 2023-03-20 13:31:15 +00:00
Lucio FrancoandGitHub c8027a1385 fix(codec): Cancelled client streaming handling (#1315)
This PR fixes how client side streaming is handled on the server side
and improves overall source error matching.

Fixes:

- Correctly, detect h2 codes when its wrapped in a hyper error.
- Cancelled requests from the client side during client streaming
  requests correctly return EOF (`None` from `Streaming::message()`)

Closes #848
2023-03-14 15:18:56 +00:00
Lucio FrancoandGitHub 983be6608e chore(web): Update tonic-web readme (#1292) 2023-02-23 10:06:32 +00:00
Lucio FrancoandGitHub 2888ac92bd chore: Remove clippy from CI (#1288) 2023-02-21 15:54:31 +00:00
Lucio FrancoandGitHub 26b848be46 chore: Add bootstrap tests to contrib doc (#1278) 2023-02-16 21:49:34 +00:00
Lucio FrancoandGitHub 1efabf0003 chore: Fix CI msrv workflow (#1176) 2022-12-01 12:22:22 -05:00
Lucio FrancoandGitHub d6f0567818 chore: Prepare 0.8.4 (#1170) 2022-11-29 14:22:54 -05:00
Lucio FrancoandGitHub dc079c12bf chore: Prepare v0.8.3 release (#1164) 2022-11-28 13:35:48 -05:00
Lucio FrancoandGitHub c4525ba6ad feat(build): Add CodeGenBuilder (#1154)
This commit adds a new `CodeGenBuilder` that replaces the
client/server generate fn with a builder stlye that allows
adding config items in an non-breaking way. This also deprecates
both of the client/server generate fn in favor of the builder ones.
2022-11-28 12:10:44 -05:00
Lucio FrancoandGitHub 1f5bc9b9d5 feat(build): Add build_transport builder option (#1130) 2022-11-04 11:04:23 -04:00
Lucio FrancoandGitHub 6667ace032 Update minimal version of pin-project (#1132) 2022-11-01 12:53:18 -04:00
Lucio FrancoandGitHub a7e29c9213 chore: Prepare 0.8.2 release (#1089) 2022-09-28 10:56:22 -04:00
Lucio FrancoandGitHub cddd992666 fix(transport): Bump axum for CVE-2022-3212 (#1088) 2022-09-28 10:27:58 -04:00
Lucio FrancoandGitHub 5723681777 chore: Prepare 0.8.1 release (#1072) 2022-09-07 10:33:19 -04:00
Lucio FrancoandGitHub 433c4ebd80 chore: Add missing changelog entry (#1055) 2022-08-09 11:29:32 -07:00
Lucio Franco ec359ba35f chore: Prepare 0.8 release (#1044) 2022-07-29 16:45:57 -04:00
Lucio FrancoandGitHub 10f6d2f1a9 feat: Add Grpc::with_origin for clients (#1017) 2022-06-20 09:36:51 -04:00
Lucio FrancoandGitHub 1b0b525115 chore: Prepare 0.7.2 release (#998) 2022-05-05 10:19:30 -04:00
Lucio FrancoandGitHub 6857c834c2 chore: Fix rustls server example (#997) 2022-05-04 15:34:37 -04:00
Lucio FrancoandGitHub 2112ecc426 chore: Prepare tonic-build 0.7.1 (#988) 2022-04-28 12:56:30 -04:00
Lucio FrancoandGitHub 03fb09ccb8 chore: Add rustls examples (#968) 2022-04-07 14:24:04 -04:00
Lucio FrancoandGitHub 9e0d21f3eb chore: Add rust cache for CI (#961) 2022-04-04 16:36:17 -04:00
Lucio Franco 9836977d77 bump tonic to 0.7.1 2022-04-04 16:33:03 -04:00
Lucio FrancoandGitHub 88695c05ad chore: Prepare 0.7.1 release (#962) 2022-04-04 16:31:03 -04:00
Lucio FrancoandGitHub f1ca90f288 feat(transport): Add channel feature flag (#960) 2022-04-04 15:31:40 -04:00
Lucio FrancoandGitHub e87db5280e chore: Prepare aux crates for release (#955) 2022-04-01 10:45:31 -04:00
Lucio FrancoandGitHub 808c417cbd chore: Prepare 0.10 release (#954) 2022-03-31 17:05:54 -04:00
Lucio FrancoandGitHub a359539a22 chore: Update mock example (#926) 2022-02-24 09:28:53 -05:00
Lucio FrancoandGitHub d7cae702fc fix(codec): Return None after poll_data error (#921) 2022-02-23 11:22:01 -05:00
Lucio FrancoandGitHub d4973642da chore: Remove MockStream (#923) 2022-02-22 16:21:39 -05:00
Lucio FrancoandGitHub a197c20469 fix(transport): connect w/ connector infailable (#922) 2022-02-22 15:33:29 -05:00
Lucio FrancoandGitHub ee6e726707 fix(transport): Endpoint returns transport error (#920) 2022-02-22 14:58:22 -05:00
Lucio FrancoandGitHub 0f7344a75f chore(interop): Fix deprecated clap arg (#914) 2022-02-17 16:47:41 -05:00
Lucio FrancoandGitHub a6c77d1f77 chore: Prepare 0.6.1 (#814) 2021-10-26 20:29:35 -04:00
Lucio FrancoandGitHub 2a3e9b2f6f fix(transport): Bump hyper to 0.14.14 (#813) 2021-10-26 20:14:08 -04:00
Lucio FrancoandGitHub 2fe7131a23 chore: Prepare 0.6.0 release (#811) 2021-10-25 10:25:56 -04:00
Lucio FrancoandGitHub 23c1392fb7 fix(tonic): Remove Sync requirement for streams (#804) 2021-10-24 21:48:05 -04:00
Lucio FrancoandGitHub 1f3df8db9e chore: Upgrade to 2021 edition (#808) 2021-10-24 21:12:20 -04:00
Lucio FrancoandGitHub cc2b1634e2 chore: Update intra doc link lint name (#805) 2021-10-22 11:31:36 -04:00
Lucio FrancoandGitHub bbcacd0625 chore: Fix routeguide example warning (#807) 2021-10-22 11:17:04 -04:00
Lucio FrancoandGitHub 3ab00f304d fix(transport): AddOrigin panic on invalid uri (#801) 2021-10-22 08:45:04 -04:00
Lucio FrancoandGitHub 4054d61e14 fix(tonic): Status code to set correct source on unkown error (#799) 2021-10-19 11:52:59 -04:00
Lucio FrancoandGitHub 4604042934 Add streaming example w/ client disconnect (#782) 2021-10-07 17:04:26 -04:00
Lucio FrancoandGitHub 0e33a0241e feat(transport): Add Connected impl for DuplexStream (#722) 2021-07-13 15:39:42 -04:00
Lucio Franco 5bb1a029a1 Fix tonic-types and health versions 2021-07-08 15:57:25 -04:00
040e3a4811 chore: Prepare v0.5 release (#706)
* bump tonic version to 0.5

* Update changelog for 0.5

* Update CHANGELOG.md

Co-authored-by: David Pedersen <[email protected]>

* address comments

Co-authored-by: David Pedersen <[email protected]>
2021-07-08 15:53:14 -04:00
Lucio FrancoandGitHub 2346d99f6e example: Add mocked io example (#677)
* example: Add mocked io example

* fix mock example

* Remove uniex bound for mock impl
2021-07-08 10:45:04 -04:00
Lucio Franco 7677ad6476 Fix connect with connector lazy 2021-07-01 18:31:39 +00:00
Lucio FrancoandGitHub 2a46ff5c96 feat(transport): Add connect_with_connector_lazy (#696)
Closes #695
2021-07-01 14:13:41 -04:00
Lucio FrancoandGitHub 737ace393d fix(codec): Fix streaming reponses w/ many status (#689)
Closes #681
2021-07-01 10:25:43 -04:00
Lucio FrancoandGitHub 8fa6daae92 chore: Prepare tonic 0.4.2 and health 0.3.1 (#605) 2021-04-13 18:20:13 -04:00
Lucio Franco 7aaa2f85d9 Revert "Remove grpc-timeout header from reserved headers (#603)"
This reverts commit 0b535985c8.
2021-04-13 21:59:16 +00:00
Lucio Franco 74148549ff Add readme to reflection 2021-03-17 16:35:36 +00:00
Lucio FrancoandGitHub db0909382b fix(reflection): Depend on correct version of build (#582) 2021-03-17 12:31:52 -04:00
Lucio Franco e511f17c1c Fix tonic-health cargo path issues 2021-01-15 13:56:24 -05:00
Lucio FrancoandGitHub fda2d689d4 chore: Prepare 0.4 release (#538)
* Prepare `0.4` release

* Fix cargo issues
2021-01-15 13:38:36 -05:00
Lucio FrancoandGitHub a7778ad166 feat(transport): Move error! to debug! (#537) 2021-01-15 12:51:28 -05:00
dafea9adee fix(transport): return Poll::ready until error is consumed (#536)
* fix(transport): return Poll::ready until error is consumed

When a lazy connection fails to connect it first
returns Poll::ready from the reconnect service,
yet the subsequent call returns Poll::pending
making tower_balance loop forever.
Instead, on error we return Ready
until the error is consumed in the
call method.

* chore: revert version change

* refactor: Into<Error> bounds for error intead of debug

* Remove fmt::Debug bound for reconnect

Co-authored-by: Helge Hoff <[email protected]>
2021-01-15 12:34:41 -05:00
Lucio FrancoandGitHub 41c51f1c61 feat(transport): Fix TLS accept w/ peer certs (#535)
* feat(transport): Fix TLS accept w/ peer certs

* fix unused var

* fix feature flag imports

* spawn accept task
2021-01-15 11:59:26 -05:00
Lucio FrancoandGitHub 4974604c0b ci: Disable deny workflow (#534) 2021-01-14 16:42:12 -05:00
Lucio FrancoandGitHub 9ea4a64a6c examples: Add tower-client example (#466) 2020-09-29 11:16:07 -04:00
Lucio FrancoandGitHub 90858926b6 chore: Prepare 0.3.1 release (#436) 2020-08-20 10:49:12 -04:00
Lucio FrancoandGitHub 73938e1e0a chore: Fix typo in uds example (#417)
Closes #350
2020-07-27 15:38:47 -04:00
Lucio FrancoandGitHub 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
Lucio FrancoandGitHub 8212afdf85 chore: Prepare tonic-health release 0.2.0 (#411) 2020-07-23 15:41:26 -04:00
Lucio FrancoandGitHub 2022fa9c53 chore: Ignore ansi_term in deny.toml (#406) 2020-07-20 16:58:28 -04:00
Lucio Franco ecb1920782 fix doc link 2020-07-13 13:02:44 -04:00
Lucio FrancoandGitHub 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
Lucio FrancoandGitHub a567f17e52 chore: Prepare 0.2.2 release (#396) 2020-07-10 12:59:22 -04:00
Lucio FrancoandGitHub 2c4c544d90 fix: Status::details leaking base64 encoding (#395)
Fixes #379
2020-07-10 12:40:55 -04:00
Lucio FrancoandGitHub 98bcc339b1 Rename get_uri to uri (#393)
* Rename `get_uri` to `uri`

* Fix doc test
2020-07-10 11:45:33 -04:00
Lucio FrancoandGitHub c9b3c7f11c Fix hyper_warp example warnings (#390) 2020-07-10 11:28:13 -04:00
Lucio FrancoandGitHub ea7fe66b14 feat(types): Add tonic-types crate (#391) 2020-07-08 18:01:16 -04:00
Lucio FrancoandGitHub 9c50d759de Fix deny warnings (#389) 2020-07-06 11:53:30 -04:00
Lucio FrancoandGitHub 59ce1d2590 chore: Prepare 0.2.1 release (#346) 2020-05-07 15:46:45 -04:00
Lucio FrancoandGitHub e683ffef1f fix: base64 encode details header (#345) 2020-05-07 15:31:26 -04:00
Lucio FrancoandGitHub 70b345fc98 Update LICENSE 2020-04-09 10:53:33 -04:00
Lucio Franco 9ebc6f6667 chore: Add tonic-health readme`
Signed-off-by: Lucio Franco <[email protected]>
2020-04-01 14:45:05 -04:00
Lucio FrancoandGitHub 6f378e2bd0 chore: Prepare 0.2 release (#321)
Signed-off-by: Lucio Franco <[email protected]>
2020-04-01 14:34:51 -04:00
Lucio FrancoandGitHub 04a8c0c82a fix(transport): Handle tls accepting on task (#320)
Signed-off-by: Lucio Franco <[email protected]>
2020-04-01 13:02:19 -04:00
Lucio FrancoandGitHub e5b1f8a172 chore: Rename internal uuid crate (#319)
Signed-off-by: Lucio Franco <[email protected]>
2020-04-01 12:35:11 -04:00
Lucio FrancoandGitHub 202093c317 feat(build): Add support for custom prost config (#318)
Signed-off-by: Lucio Franco <[email protected]>
2020-04-01 11:58:53 -04:00
Lucio FrancoandGitHub 555323630a chore: Update tokio-util 0.3 (#315)
Signed-off-by: Lucio Franco <[email protected]>
2020-03-31 15:06:52 -04:00
Lucio FrancoandGitHub 3cba9f5f6f chore: Fix feature flags and build docs (#311)
Signed-off-by: Lucio Franco <[email protected]>
2020-03-30 12:02:10 -04:00
Lucio FrancoandGitHub 2e082f8b3e chore(build): Refactor codegen traits (#302)
Signed-off-by: Lucio Franco <[email protected]>
2020-03-29 12:57:11 -04:00
Lucio FrancoandGitHub 7dfa2a277b fix(build): Ignore non .rs files with rustfmt (#284)
Fixes #283
2020-03-05 15:21:02 -05:00
Lucio FrancoandGitHub e2bff8f13e chore(docs): Add warp + tonic example (#268)
Signed-off-by: Lucio Franco <[email protected]>
2020-02-16 15:13:22 -05:00
Lucio FrancoandGitHub b49ad9bb47 chore(docs): Add hyper example (#267)
Signed-off-by: Lucio Franco <[email protected]>
2020-02-16 12:46:55 -05:00
Lucio FrancoandGitHub 66ac4c4049 chore: Prepare 0.1.1 release (#246)
* chore: Prepare 0.1.1 release

* add missing pr
2020-01-20 11:53:45 -05:00
Lucio FrancoandGitHub 6de0b4d26f fix(transport): Use Uri host if no domain for tls (#244)
* fix(transport): Use Uri host if no domain for tls

* Fix warnings
2020-01-20 11:21:44 -05:00