Artem Vorotnikov and GitHub
933f560735
reflection: commit generated code ( #1151 )
2022-11-16 16:13:59 -05:00
Marco Neumann and GitHub
33e22bbc5e
fix: do not panic while encoding oversized bodies ( #1142 )
...
Fixes #1141 .
2022-11-10 11:07:35 -05:00
Gian Marco Gherardi and GitHub
3a542709a7
chore: Added protoc installation instruction for Windows ( #1103 )
2022-11-09 15:39:23 -05:00
bouzuya and GitHub
e188521149
feat(build): Add disable_comments option ( #1127 )
2022-11-08 11:08:19 -05:00
LIU JIE and GitHub
c9cadd4b23
chore: remove patch caused cargo error ( #1140 )
2022-11-08 10:17:54 -05:00
Aleksander and GitHub
7153289b51
fix(reflection, health): Remove transport feature ( #1112 )
2022-11-07 12:00:17 -05:00
虎 and GitHub
f82488c499
chore: Fix type in routeguide ( #1136 )
2022-11-07 10:58:11 -05:00
Lucio Franco and GitHub
1f5bc9b9d5
feat(build): Add build_transport builder option ( #1130 )
2022-11-04 11:04:23 -04:00
Lucio Franco and GitHub
6667ace032
Update minimal version of pin-project ( #1132 )
2022-11-01 12:53:18 -04:00
Francesco Guardiani and GitHub
a98d719fb4
feat(web): Removed Cors impl and replaced with tower-http's CorsLayer ( #1123 )
...
Fix #1122 , see the issue for more details.
Signed-off-by: slinkydeveloper <[email protected] >
2022-10-31 13:56:36 -04:00
Francesco Guardiani and GitHub
40536dc134
feat(web): Implement tower::Layer for tonic_web::Config ( #1119 )
...
Signed-off-by: slinkydeveloper <[email protected] >
2022-10-28 13:59:01 -04:00
Francesco Guardiani and GitHub
b409ddd478
feat: Expose Request#into_parts and Request#from_parts ( #1118 )
...
Signed-off-by: slinkydeveloper <[email protected] >
2022-10-19 10:25:21 -04:00
Nicolas Guiard and GitHub
64e29c621b
test(tonic-web): fix grpc_web_content_types() test not covering all cases ( #1113 )
2022-10-18 13:25:24 -04:00
Will-Low and GitHub
be1fe02e6e
chore: bumping dependency axum to version 0.5.16 ( #1110 )
2022-10-15 10:18:19 -04:00
John Howard and GitHub
675b3b2e75
Create SECURITY.md ( #1106 )
...
* Create SECURITY.md
Fixes https://github.com/hyperium/tonic/issues/1100
* Update SECURITY.md
2022-10-11 10:57:19 -04:00
walter and GitHub
0b03b30ccc
feat(transport): add from_listener for TcpIncoming ( #1093 )
2022-10-03 07:08:43 -04:00
CaliViking and GitHub
3663faf32d
Update README.md ( #1090 )
...
I believe that the reference to Rust Analyzer build script setting is incorrect. Please verify before accepting.
2022-09-28 15:47:32 -04:00
Lucio Franco and GitHub
a7e29c9213
chore: Prepare 0.8.2 release ( #1089 )
2022-09-28 10:56:22 -04:00
Lucio Franco and GitHub
cddd992666
fix(transport): Bump axum for CVE-2022-3212 ( #1088 )
2022-09-28 10:27:58 -04:00
Marek Kuskowski and GitHub
c1b08dffac
feat(build): add cleanup-markdown feature flag ( #1086 )
2022-09-28 10:00:25 -04:00
56ff45d9a3
feat: add Result<T> type alias for std::result::Result<T, tonic::Status> ( #1085 )
...
* add `Result<T>` type alias for `std::result::Result<T, tonic::Status>`
* Allow user to override the error type
Co-authored-by: David Pedersen <[email protected] >
* add rustdoc for `tonic::Result`
* cargo fmt
Co-authored-by: David Pedersen <[email protected] >
2022-09-26 12:24:33 -04:00
Rafael Lemos and GitHub
3e40d819cf
feat(types): Add gRPC Richer Error Model support (BadRequest) ( #1068 )
...
* types: add tonic as dependency, add error_details.proto
* types: add BadRequest support from flemosr/tonic-richer-error
* types: adjust code following suggestions
Adjustments following suggestions by @LucioFranco in https://github.com/hyperium/tonic/pull/1068 .
Adjust style, remove unecessary prints, avoid glob imports, apply
`non_exhaustive` to `ErrorDetails` and `ErrorDetail`, avoid pub
fields in `ErrorDetails`, adjust
`WithErrorDetails::with_error_details_vec` args, add
`gen_details_bytes`.
* types: add generated protobuf code
As suggested by @LucioFranco in https://github.com/hyperium/tonic/pull/1068#discussion_r956117520 .
This avoids the need for consumers to have `protoc` in their path.
Implemented following changes in https://github.com/hyperium/tonic/pull/1065 .
* types: add custom metadata support
This allows consumers to provide custom metadata when creating a
`Status` with error details.
* types: adjust code following suggestions
Adjustments following suggestions by @LucioFranco in https://github.com/hyperium/tonic/pull/1068 .
Move `error_details_vec` mod into `error_details` mod, adjust doc
comments, rename `WithErrorDetails` trait to `StatusExt`.
2022-09-21 15:12:45 -04:00
David Pedersen and GitHub
ee3d0dfe75
feat(tonic): impl Clone for Status using Arc ( #1076 )
2022-09-12 11:31:30 -04:00
Lucio Franco and GitHub
5723681777
chore: Prepare 0.8.1 release ( #1072 )
2022-09-07 10:33:19 -04:00
919d28b2b9
feat(transport): Expose hyper's H2 adaptive window on server ( #1071 )
...
Co-authored-by: Adam Chalmers <[email protected] >
2022-09-06 14:37:20 -04:00
Joe Dahlquist and GitHub
2a83f8ba1a
expose Extensions::into_http and Status::from_error ( #1067 )
2022-08-24 16:04:26 -04:00
Markus Westerlind and GitHub
523a55044f
chore: Reduce how much code gets monomorphized ( #1032 )
2022-08-23 14:29:15 -04:00
Ben Sully and GitHub
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
Masakazu Muraoka and GitHub
2d66a0aa30
Update helloworld-tutorial.md ( #1057 )
...
grpcurl command have been run successfully with modifieded like above.
2022-08-15 10:33:01 -04:00
Lucio Franco and GitHub
433c4ebd80
chore: Add missing changelog entry ( #1055 )
2022-08-09 11:29:32 -07:00
Opisthoteuthis agassizii and GitHub
fb840583d3
chore(docs): Update docs to mention new protoc requirements in tonic >= 0.8.0 ( #1050 )
2022-08-09 09:31:03 -07:00
9be4e2479d
chore: Update docs to reflect changes to compression feature ( #1046 )
...
Co-authored-by: Lucio Franco <[email protected] >
2022-08-02 09:38:08 -07:00
Lucio Franco
ec359ba35f
chore: Prepare 0.8 release ( #1044 )
2022-07-29 16:45:57 -04:00
Alan Lawrence and GitHub
2a7c610011
Make TcpIncoming public ( #1037 )
2022-07-29 14:31:53 -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 Light and GitHub
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
Bryan Stenson and GitHub
9ea03c2c44
chore(doc): Fix typo in endpoint docs ( #1026 )
2022-06-28 16:47:34 -04:00
feae96c5be
feat: Decouple NamedService from the transport feature ( #969 )
...
Co-authored-by: Eliza Weisman <[email protected] >
2022-06-21 13:48:57 -04:00
Mick van Gelderen and GitHub
1d2083a1a6
feat(build): Add option to emit rerun-if-changed instructions ( #1021 )
2022-06-21 10:27:46 -04:00
Lucio Franco and GitHub
10f6d2f1a9
feat: Add Grpc::with_origin for clients ( #1017 )
2022-06-20 09:36:51 -04:00
Quentin Perez and GitHub
4388d822c4
tonic: Introduce a new method on Endpoint to override the origin ( #1013 )
2022-06-20 09:29:11 -04:00
tottoto and GitHub
8287988c21
chore(reflection): Use write macro instead of write_fmt ( #1015 )
2022-06-15 11:23:29 -04:00
Marcus Griep and GitHub
a585a72293
feat!: remove codegen dependency on compression feature ( #1004 )
2022-06-13 17:48:27 -04:00
Marcus Griep and GitHub
d9f5c75112
chore: update clap dependency, fix deprecations ( #1016 )
2022-06-13 16:34:27 -04:00
Matthias Vogelgesang and GitHub
91b73f9fc3
docs: document Streaming::message() return values ( #1006 )
2022-05-23 15:30:06 -04:00
Joseph LeBlanc and GitHub
ec9ee61925
Small wording change for newbie-friendly clarity ( #995 )
2022-05-20 13:01:52 -04:00
Brandon Williams and GitHub
de2e4ac077
feat(build): Better support for custom codecs ( #999 )
...
BREAKING CHANGE: `CODEC_PATH` moved from const to fn
2022-05-05 12:52:03 -04:00
Lucio Franco and GitHub
1b0b525115
chore: Prepare 0.7.2 release ( #998 )
2022-05-05 10:19:30 -04:00
Lucio Franco and GitHub
6857c834c2
chore: Fix rustls server example ( #997 )
2022-05-04 15:34:37 -04:00
Gus Wynn and GitHub
1dd5ad2b07
fix(transport): Emit HttpsUriWithoutTlsSupport only w/ tls feat ( #996 )
2022-05-04 13:26:34 -04:00