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
tottoto
2ec0f87767
chore(examples): Remove unnecessary asyncronous file io to read data for example ( #1219 )
2023-01-06 14:34:51 -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
b7dffac931
chore(types): Refactor ErrorDetails constructor ( #1218 )
2023-01-05 12:03:18 -05:00
Rafael Lemos
03b4735bb4
feat(types): Add gRPC Richer Error Model support (QuotaFailure) ( #1204 )
2023-01-04 14:24:09 -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
cc42d1f88c
feat(types): Expose FILE_DESCRIPTOR_SET ( #1210 )
2022-12-22 14:05:22 -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
a72cf04b44
chore: Remove unused tracing-futures from dependencies ( #1208 )
2022-12-20 16:13:46 -05:00