Auri
4942dd4a43
tonic-build: option to emit Arc<Self> as server receiver ( #1352 )
...
This implements an option to emit `Arc<Self>` instead of `&self` in
server traits. This enables implementor to reference `Self` data for
indefinite duration, which may be useful for streaming requests.
Fixes : #1351
2023-04-19 19:36:43 +00:00
Lucio Franco
ae75801604
chore: Prepare 0.9.2 release ( #1362 )
2023-04-17 15:16:32 +00:00
tottoto
9990e6ef9d
chore: Fix clippy warning ( #1346 )
2023-04-06 14:09:34 +00:00
Lucio Franco
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 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
b301013d58
chore(health): Generate file descriptor set in bootstrap test ( #1265 )
2023-02-13 15:20:48 +00:00
tottoto
d2542dc034
feat: Rename api related to protobuf ( #1224 )
2023-01-10 11:16:57 -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
Shrutesh Pachineela
a562a3ce32
fix(build): Allow Services to be named Result ( #1203 )
...
closes #1156
2022-12-21 12:07:07 -05:00
tottoto
204e8d05a7
chore(health): Update generated code ( #1207 )
2022-12-20 15:06:40 -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
Aleksander
7153289b51
fix(reflection, health): Remove transport feature ( #1112 )
2022-11-07 12:00:17 -05:00
Lucio Franco
1f5bc9b9d5
feat(build): Add build_transport builder option ( #1130 )
2022-11-04 11:04:23 -04:00
Marek Kuskowski
c1b08dffac
feat(build): add cleanup-markdown feature flag ( #1086 )
2022-09-28 10:00:25 -04:00
Lucio Franco
5723681777
chore: Prepare 0.8.1 release ( #1072 )
2022-09-07 10:33:19 -04:00
Ben Sully
0a2a2f3ac5
tonic-health: commit generated code ( #1065 )
...
* tonic-health: commit generated code rather than generating at build time
This saves users from needing protoc available on their path if they're not
generating other tonic code at build time, either.
The generated modules can be regenerated by enabling the `gen-proto`
feature, which will trigger the relevant part of the build script.
* Check generated code for tonic-health matches in CI
* Use bootstrap test to generate/check validity of generated code
As suggested by @LucioFranco in https://github.com/hyperium/tonic/pull/1065\#discussion_r951580189 .
This avoids the need for a feature which would show
up in docs.rs, and achieves the same goals via CI.
2022-08-23 10:31:37 -04:00
Lucio Franco
ec359ba35f
chore: Prepare 0.8 release ( #1044 )
2022-07-29 16:45:57 -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
tison
097e7e85a9
feat(health): Expose HealthService publically ( #930 )
2022-03-18 14:37:52 -07: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
snowpoke
2b0ffee620
fix(health): Correctly implement spec for overall health ( #897 )
...
Co-authored-by: snowpoke <hello@snowpoke.ink >
2022-01-24 14:59:14 -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
23c1392fb7
fix(tonic): Remove Sync requirement for streams ( #804 )
2021-10-24 21:48:05 -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
efe0865d26
chore: Prepare tonic v0.5.1 and tonic-health 0.4.1 ( #737 )
2021-08-09 17:20:36 +02:00
Blake Willoughby
6ee638d940
feat(health): Expose grpc_health_v1 file descriptor set ( #620 )
2021-07-13 15:35:35 -04:00
Lucio Franco
5bb1a029a1
Fix tonic-types and health versions
2021-07-08 15:57:25 -04: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
Juan J. Jimenez-Anca
4b26e78109
add docs for health checks ( #599 )
2021-05-01 17:30:54 +02:00
David Pedersen
4001665821
chore: Add deny(broken_intra_doc_links) to all crates ( #616 )
2021-04-29 15:57:21 +02:00
Lucio Franco
8fa6daae92
chore: Prepare tonic 0.4.2 and health 0.3.1 ( #605 )
2021-04-13 18:20:13 -04:00
Kevin
49f6137673
feat(health): Expose proto and client ( #471 ) ( #602 )
...
Co-authored-by: kvwu <kvwu@amazon.com >
Co-authored-by: Lucio Franco <luciofranco14@gmail.com >
2021-04-13 17:54:18 -04:00
Lucio Franco
e511f17c1c
Fix tonic-health cargo path issues
2021-01-15 13:56:24 -05:00