Lucio Franco
3a497f2ca2
chore: Prepare v0.9.0 release ( #1337 )
2023-03-31 18:41:53 +00:00
Lucio Franco
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
林玮 (Jade Lin)
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 <luciofranco14@gmail.com >
2023-02-23 10:06:45 +00:00
Moncef AOUDIA
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
tottoto
d2542dc034
feat: Rename api related to protobuf ( #1224 )
2023-01-10 11:16:57 -05:00
tottoto
b6d9fd69ae
chore(reflection): Add file descriptor set generation ( #1213 )
...
Co-authored-by: Lucio Franco <luciofranco14@gmail.com >
2023-01-05 12:03:26 -05:00
tottoto
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
tottoto
3ee1e6cc10
chore: Add test to check FILE_DESCRIPTOR_SET is valid ( #1217 )
2023-01-04 14:19:47 -05:00
tottoto
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
tottoto
fdff11115b
feat(reflection): Add dummy implementation for extension ( #1209 )
2022-12-22 10:49:51 -05:00
Shrutesh Pachineela
a562a3ce32
fix(build): Allow Services to be named Result ( #1203 )
...
closes #1156
2022-12-21 12:07:07 -05:00
tottoto
bf22a740c3
chore: Update to 2021 edition ( #1188 )
2022-12-13 15:16:49 -05:00
Jan Teske
25ea473abd
tonic-build: use unified syntax to clone Arcs ( #1182 )
2022-12-13 13:22:54 -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
Lucio Franco
dc079c12bf
chore: Prepare v0.8.3 release ( #1164 )
2022-11-28 13:35:48 -05:00
Artem Vorotnikov
933f560735
reflection: commit generated code ( #1151 )
2022-11-16 16:13:59 -05:00
Aleksander
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
Ross Light
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 <luciofranco14@gmail.com >
2022-07-29 14:30:33 -04:00
Ross Light
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
tottoto
8287988c21
chore(reflection): Use write macro instead of write_fmt ( #1015 )
2022-06-15 11:23:29 -04:00
Lucio Franco
e87db5280e
chore: Prepare aux crates for release ( #955 )
2022-04-01 10:45:31 -04:00
Lucio Franco
808c417cbd
chore: Prepare 0.10 release ( #954 )
2022-03-31 17:05:54 -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
Matthias Vogelgesang
d6c0fc112b
feat(build): use prettyplease to format output ( #890 ) ( #904 )
2022-02-10 13:20:52 -05:00
tottoto
366d888a4b
chore: Fix clippy lints ( #881 )
2022-01-12 16:32:40 -05: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
2fe7131a23
chore: Prepare 0.6.0 release ( #811 )
2021-10-25 10:25:56 -04:00
Lucio Franco
1f3df8db9e
chore: Upgrade to 2021 edition ( #808 )
2021-10-24 21:12:20 -04:00
Lucio Franco
cc2b1634e2
chore: Update intra doc link lint name ( #805 )
2021-10-22 11:31:36 -04:00
KaOs1
c1fe31c1a3
health, reflection: make rustfmt dependency optional ( #785 )
...
Co-authored-by: Lucio Franco <luciofranco14@gmail.com >
2021-10-19 11:22:34 -04:00
Eliza Weisman
09805ece45
feat: Update prost and friends to 0.9 ( #791 )
2021-10-19 10:59:28 -04:00
David Pedersen
4b0ece6d28
chore: fix clippy lints ( #707 )
2021-07-09 18:23:55 +02:00
Lucio Franco
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 <david.pdrsn@gmail.com >
* address comments
Co-authored-by: David Pedersen <david.pdrsn@gmail.com >
2021-07-08 15:53:14 -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
David Pedersen
4001665821
chore: Add deny(broken_intra_doc_links) to all crates ( #616 )
2021-04-29 15:57:21 +02:00
Amr Hassan
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 Franco
db0909382b
fix(reflection): Depend on correct version of build ( #582 )
2021-03-17 12:31:52 -04:00
David Pedersen
7889c7ff97
Prepare 0.4.1 release ( #580 )
2021-03-16 17:39:57 +01:00
James Nugent
c54f24721c
feat: Implement gRPC Reflection Service ( #340 )
...
Co-authored-by: Samani G. Gikandi <samani@gojulas.com >
2021-02-16 11:07:51 -05:00