Commit Graph

722 Commits

Author SHA1 Message Date
tottoto 99eae577ca chore(tonic): Remove redundant reference to reference (#1309) 2023-03-13 14:28:18 +00:00
tottoto c1906074b6 chore(types): Remove unnecesarry unreachable_pub lint allowing (#1311) 2023-03-13 14:28:04 +00:00
Luca Pette c0d1397abb Fix typo (#1308) 2023-03-10 20:52:48 +00:00
Rafael Lemos d54d02d3ed feat(types): Add gRPC Richer Error Model support (LocalizedMessage) (#1295)
* types: add support for `LocalizedMessage` error message type

Following implementation at flemosr/tonic-richer-error.

* types: add `ErrorDetails::with_help_link`
2023-02-27 16:25:43 +00:00
tottoto 838d91aca3 chore: Update to tower-http 0.4 (#1296)
* chore: Update to tower-http 0.4

* chore(tonic): Update to axum 0.6.9
2023-02-27 14:33:14 +00:00
Rafael Lemos d6041a99c2 feat(types): Add gRPC Richer Error Model support (Help) (#1293)
* types: add support for `Help` error message type

Following implementation at flemosr/tonic-richer-error.

* types: add `ResourceInfo` to `gen_status_with_details` test

* types: use `impl Into<Vec<T>>` instead of `Vec<T>` in pub fn's params

* types: comply with clippy

* types: fix names of some tests and vars in `std_messages`
2023-02-23 11:24:19 +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
tottoto 1547f968b4 chore(examples): Remove tracing-attributes from dependencies (#1289) 2023-02-23 10:06:37 +00:00
Lucio Franco 983be6608e chore(web): Update tonic-web readme (#1292) 2023-02-23 10:06:32 +00:00
Francesco Guardiani b5764035eb Remove unnecessary Clone bound in GrpcWebLayer (#1291)
Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
2023-02-22 12:10:36 +00:00
tottoto 3a38a32a02 chore(tonic): Use BoxBody type alias (#1284)
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2023-02-21 17:03:42 +00:00
Rafael Lemos 7eeda24350 feat(types): Add gRPC Richer Error Model support (ResourceInfo) (#1282)
* types: add support for `ResourceInfo` error message type

Following implementation at flemosr/tonic-richer-error.

* types: update doc comment examples

---------

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2023-02-21 17:03:37 +00:00
Lucio Franco 2888ac92bd chore: Remove clippy from CI (#1288) 2023-02-21 15:54:31 +00:00
tottoto 79d0e3faf5 chore(tonic): Remove duplicate tls feature gate and re-export http crate instead of using wildcard importing (#1281)
* chore(tonic): Remove duplicate tls feature gate

* chore(tonic): Re export http crate instead of using wildcard importing
2023-02-21 15:50:53 +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
Rafael Lemos a52de8aec3 types: add support for RequestInfo error message type (#1280)
Following implementation at flemosr/tonic-richer-error.
2023-02-17 15:18:46 +00:00
Lucio Franco 26b848be46 chore: Add bootstrap tests to contrib doc (#1278) 2023-02-16 21:49:34 +00:00
Antonín Dufka 773e4e1749 feat(tls): add an option for optional TLS client authentication (#1163)
* feat(tls): add an option for optional TLS client authentication

Previously there were only two options for client authentication –
either no authentication or mandatory authentication. With this change,
a server can allow for optional authentication with a given root CA
certificate and enforce client authentication on a per-request basis.

Refs: #687

* Update tonic/src/transport/server/tls.rs

---------

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2023-02-16 20:14:15 +00:00
Rafael Lemos 2378581850 feat(types): Add gRPC Richer Error Model support (PreconditionFailure) (#1276)
* types: add support for `PreconditionFailure` error message type

Following implementation at flemosr/tonic-richer-error.

* types: doc comments nits

* types: merge `impl` blocks at `std_messages`
2023-02-16 16:08:53 +00:00
Rafael Lemos 555a8bcf42 types: add support for ErrorInfo error message type (#1269)
Following implementation at flemosr/tonic-richer-error.
2023-02-15 15:24:17 +00:00
tottoto 5acde56176 feat(tonic): Use NamedService without transport feature (#1273) 2023-02-15 14:47:28 +00:00
tottoto b712df608f chore(examples): Split tls-rustls example (#1272) 2023-02-15 14:47:09 +00:00
tottoto 7d6561cf3b chore(tonic): Change async-stream optional (#1271) 2023-02-15 14:46:41 +00:00
tottoto 74e4400219 chore: Use feature resolver v2 and turn off unused features (#1270)
* chore: Use feature resolver version 2

* chore(web): Turn off unused features
2023-02-15 14:46:27 +00:00
tottoto 3f4d7432b9 chore(types): Turn off unused features (#1266) 2023-02-14 14:47:43 +00:00
tottoto d9a8f10324 chore(tonic): Remove duplicated code (#1267) 2023-02-14 14:47:11 +00:00
Velichko Anton aa69a023f7 Expose Response#into_parts and Response#from_parts (#1263)
* chore: change the default visibility from pub(crate) to pub for from_parts and into_parts pair.

* chore: add docs for the Response#into_parts and Response#from_parts
2023-02-13 18:54:37 +00:00
Nick Cameron 7c0e9c853c Make some functionality of Status public (#1256)
* Make some functionality of Status public

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Update tonic/src/status.rs

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2023-02-13 15:29:19 +00:00
tottoto b301013d58 chore(health): Generate file descriptor set in bootstrap test (#1265) 2023-02-13 15:20:48 +00:00
山岚 17d6a4b576 feat(transport): added support for EC keys (#1145)
* tonic: allow TLS to read ECKeys.

Fixes: #1143
Signed-off-by: Yu Juncen <yu745514916@live.com>

* tonic: minimize the scope of published function.

Signed-off-by: Yu Juncen <yu745514916@live.com>

---------

Signed-off-by: Yu Juncen <yu745514916@live.com>
2023-02-13 15:16:21 +00:00
tottoto 69ec5df648 chore(examples): Remove unsafe from grpc-web-client (#1262) 2023-02-09 18:55:17 +00:00
tottoto 82770713b5 chore(examples): Add missing dep to hyper (#1225) 2023-02-08 18:25:28 +00:00
Andrew Hickman 930c805127 fix: MetadataKey::from_bytes returns an error (#1246)
BREAKING: `Metadata::from_bytes` returns an error now
2023-02-08 09:09:29 -05:00
tottoto b3567a394f chore: Add cargo-machete to detect unused dependencies (#1259) 2023-02-08 09:08:21 -05:00
tottoto 2e3e9acf7b chore(interop): Use pico-args instead of clap (#1242) 2023-02-07 09:45:32 -05:00
tottoto 09c13fac90 chore: Add windows-sys and hermit-abi to cargo-deny skip-tree (#1257)
* chore: Add windows-sys to cargo-deny skip-tree

* chore: Add hermit-abi to cargo-deny skip-tree
2023-02-07 09:41:05 -05:00
tottoto 8a6eb50b1e chore(types): Remove outdated generated file (#1239)
This file was generated by the previous version of prost-build.
This behaviour was fixed in https://github.com/tokio-rs/prost/pull/726.
2023-02-04 05:14:13 -05:00
tottoto 0ac0ce8ce7 chore: Remove unused dependencies (#1244) 2023-02-04 05:12:17 -05:00
Richard ff642f9233 feat(build): Builder: add {enum,message}_attributes (#1234)
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
2023-01-17 14:25:21 -05:00
tottoto 4c69157cef chore(interop): Lock clap version to 4.0 (#1240)
* chore(interop): Lock clap version to 4.0

* chore(interop): Lock clap_lex to 0.3.0
2023-01-17 14:24:36 -05:00
tottoto e2b1e60276 chore(tonic): Remove outdated allow dead code lint annotation (#1230) 2023-01-11 13:26:01 -05:00
tottoto 63f2e95be3 chore(web): Update to base64 0.21 (#1235) 2023-01-11 12:16:59 -05:00
tottoto ee6ccfbcc2 chore: Update to base64 0.21 (#1228) 2023-01-11 11:25:38 -05:00
tottoto 54c37a7c51 chore(examples): Turn off warp default features (#1227) 2023-01-10 16:02:48 -05:00
tottoto 8828e0340c chore(tonic): Remove redundant tls feature gate (#1226) 2023-01-10 16:02:40 -05:00
tottoto e326a91b13 chore: Update deny config (#1223) 2023-01-10 11:17:38 -05:00
tottoto d2542dc034 feat: Rename api related to protobuf (#1224) 2023-01-10 11:16:57 -05:00
tottoto 0d35d7fbaf chore(tonic): Remove outdated allow lint (#1222) 2023-01-09 12:49:31 -05:00
tottoto 1bef5f5757 chore(examples): Remove relative path from reading data (#1220) 2023-01-09 12:47:40 -05:00
Thom Wright 0ca0630993 tonic: set a conn timeout for balanced connections (#1215)
The `endpoint` supplied has a connection_timeout parameter which was
being ignored in this case.
2023-01-06 15:39:18 -05:00