Commit Graph
43 Commits
Author SHA1 Message Date
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
7a6b20d8ef feat: add GrpcMethod extension into request for client (#1275)
* feat: add GrpcMethod extension into request for client

* refactor: change GrpcMethod fields into private and expose methods instead

* refactor: hide GrpcMethod::new in doc

---------

Co-authored-by: Lucio Franco <[email protected]>
2023-02-23 10:06:45 +00:00
Moncef AOUDIAandGitHub 9f716d8411 feat(codec): Configure max request message size (#1274)
* feat(codec): add max_message_size parameter

resolves #1097

* refactor(client): add max size parameters

* refactor(tonic-build): update server gen template

* refactor(tonic-build): update client template

* fix(tonic-build): update client template

* fix(tonic-build): small typo in server.rs

* fix(tonic-build): client.rs generator

* fix(tonic): add apply max message setting size to server

* fix(test): wrong message size

* fix: doctest + generated rs
2023-02-17 15:58:22 +00:00
tottotoandGitHub d2542dc034 feat: Rename api related to protobuf (#1224) 2023-01-10 11:16:57 -05:00
b6d9fd69ae chore(reflection): Add file descriptor set generation (#1213)
Co-authored-by: Lucio Franco <[email protected]>
2023-01-05 12:03:26 -05:00
tottotoandGitHub 2d7e14f513 chore: Fix doc warning (#1214)
* chore(docs): Fix lint warning

* chore: Add ci to check cargo doc
2023-01-04 14:20:24 -05:00
tottotoandGitHub 3ee1e6cc10 chore: Add test to check FILE_DESCRIPTOR_SET is valid (#1217) 2023-01-04 14:19:47 -05:00
tottotoandGitHub 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
tottotoandGitHub fdff11115b feat(reflection): Add dummy implementation for extension (#1209) 2022-12-22 10:49:51 -05:00
Shrutesh PachineelaandGitHub a562a3ce32 fix(build): Allow Services to be named Result (#1203)
closes #1156
2022-12-21 12:07:07 -05:00
tottotoandGitHub bf22a740c3 chore: Update to 2021 edition (#1188) 2022-12-13 15:16:49 -05:00
Jan TeskeandGitHub 25ea473abd tonic-build: use unified syntax to clone Arcs (#1182) 2022-12-13 13:22:54 -05:00
tottotoandGitHub 363c04a2e8 chore: Remove unused bytes from dependencies (#1186) 2022-12-13 13:06:13 -05:00
tottotoandGitHub 2dd09c02bd chore: Fix clippy lint (#1181) 2022-12-13 11:29:29 -05:00
Lucio FrancoandGitHub dc079c12bf chore: Prepare v0.8.3 release (#1164) 2022-11-28 13:35:48 -05:00
Artem VorotnikovandGitHub 933f560735 reflection: commit generated code (#1151) 2022-11-16 16:13:59 -05:00
AleksanderandGitHub 7153289b51 fix(reflection, health): Remove transport feature (#1112) 2022-11-07 12:00:17 -05:00
Lucio Franco ec359ba35f chore: Prepare 0.8 release (#1044) 2022-07-29 16:45:57 -04:00
4288fd3517 reflection: add with_service_name method (#1042)
* reflection: add with_service_name method

Fixes: #682

* Update tonic-reflection/src/server.rs

Co-authored-by: Lucio Franco <[email protected]>
2022-07-29 14:30:33 -04:00
Ross LightandGitHub e40ae113ad reflection: export server types (#1043)
Makes it easier to store a reflection server in a variable
or get the gRPC service's name.
2022-07-29 12:12:01 -04:00
tottotoandGitHub 8287988c21 chore(reflection): Use write macro instead of write_fmt (#1015) 2022-06-15 11:23:29 -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
Jesse SzwedkoandGitHub c78274e3fe feat: Update prost to 0.10 (#948) 2022-03-30 10:43:06 -04:00
Sylwester RąpałaandGitHub c9e78c4d65 chore: Fulfill MIT license requirments (#916) 2022-02-18 13:56:47 -05:00
Matthias VogelgesangandGitHub d6c0fc112b feat(build): use prettyplease to format output (#890) (#904) 2022-02-10 13:20:52 -05:00
tottotoandGitHub 366d888a4b chore: Fix clippy lints (#881) 2022-01-12 16:32:40 -05:00
David PedersenandGitHub 101f2f76d4 chore: revert to 2018 edition (#847)
Fixes https://github.com/hyperium/tonic/issues/843
2021-12-07 09:49:07 +01:00
Lucio FrancoandGitHub 2fe7131a23 chore: Prepare 0.6.0 release (#811) 2021-10-25 10:25:56 -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
c1fe31c1a3 health, reflection: make rustfmt dependency optional (#785)
Co-authored-by: Lucio Franco <[email protected]>
2021-10-19 11:22:34 -04:00
Eliza WeismanandGitHub 09805ece45 feat: Update prost and friends to 0.9 (#791) 2021-10-19 10:59:28 -04:00
David PedersenandGitHub 4b0ece6d28 chore: fix clippy lints (#707) 2021-07-09 18:23:55 +02: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
David PedersenandGitHub 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 PedersenandGitHub 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
David PedersenandGitHub 4001665821 chore: Add deny(broken_intra_doc_links) to all crates (#616) 2021-04-29 15:57:21 +02:00
Amr HassanandGitHub 830b305b98 Fix docstring typo (#593) 2021-03-31 13:32:46 +02: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
David PedersenandGitHub 7889c7ff97 Prepare 0.4.1 release (#580) 2021-03-16 17:39:57 +01:00
c54f24721c feat: Implement gRPC Reflection Service (#340)
Co-authored-by: Samani G. Gikandi <[email protected]>
2021-02-16 11:07:51 -05:00