Commit Graph
34 Commits
Author SHA1 Message Date
Lucio FrancoandGitHub 3a497f2ca2 chore: Prepare v0.9.0 release (#1337) 2023-03-31 18:41:53 +00:00
Rafael LemosandGitHub 69ce71efa6 feat(types): Add gRPC Richer Error Model support (Docs) (#1317)
* types: improve `lib.rs` docs, add `README` file

* types: update `Cargo.toml` file
2023-03-20 15:44:47 +00:00
Rafael LemosandGitHub d471212ee8 feat(types): Add gRPC Richer Error Model support (Examples) (#1300)
* types: remove unnecessary cloning from `ErrorDetails` getters

Breaking change.

* examples: add `richer-error` examples

Following implementation at flemosr/tonic-richer-error.
2023-03-14 15:26:35 +00:00
tottotoandGitHub c1906074b6 chore(types): Remove unnecesarry unreachable_pub lint allowing (#1311) 2023-03-13 14:28:04 +00:00
Rafael LemosandGitHub 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
Rafael LemosandGitHub 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
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 <[email protected]>
2023-02-21 17:03:37 +00:00
Rafael LemosandGitHub 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
Rafael LemosandGitHub 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 LemosandGitHub 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
tottotoandGitHub 3f4d7432b9 chore(types): Turn off unused features (#1266) 2023-02-14 14:47:43 +00:00
tottotoandGitHub 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
tottotoandGitHub b7dffac931 chore(types): Refactor ErrorDetails constructor (#1218) 2023-01-05 12:03:18 -05:00
Rafael LemosandGitHub 03b4735bb4 feat(types): Add gRPC Richer Error Model support (QuotaFailure) (#1204) 2023-01-04 14:24:09 -05:00
tottotoandGitHub 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
tottotoandGitHub 3ee1e6cc10 chore: Add test to check FILE_DESCRIPTOR_SET is valid (#1217) 2023-01-04 14:19:47 -05:00
tottotoandGitHub cc42d1f88c feat(types): Expose FILE_DESCRIPTOR_SET (#1210) 2022-12-22 14:05:22 -05:00
tottotoandGitHub 4e5c0b29ba chore: Add clippy to ci (#1189) 2022-12-14 09:42:33 -05:00
tottotoandGitHub bf22a740c3 chore: Update to 2021 edition (#1188) 2022-12-13 15:16:49 -05:00
tottotoandGitHub 2dd09c02bd chore: Fix clippy lint (#1181) 2022-12-13 11:29:29 -05:00
Rafael LemosandGitHub 3076e8251e feat(types): add support for DebugInfo error message type (#1179) 2022-12-12 14:11:09 -05:00
Rafael LemosandGitHub 6cdb3d4685 feat(types): Add gRPC Richer Error Model support (RetryInfo) (#1095)
Add the code related to richer error model support to a new
`richer_error` module. This improves readability and hopefully will
make it easier to add new features to `tonic-types` in the future.
2022-12-01 11:48:06 -05:00
Lucio FrancoandGitHub dc079c12bf chore: Prepare v0.8.3 release (#1164) 2022-11-28 13:35:48 -05:00
Lucio FrancoandGitHub 1f5bc9b9d5 feat(build): Add build_transport builder option (#1130) 2022-11-04 11:04:23 -04:00
Marek KuskowskiandGitHub c1b08dffac feat(build): add cleanup-markdown feature flag (#1086) 2022-09-28 10:00:25 -04:00
Rafael LemosandGitHub 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
Lucio Franco ec359ba35f chore: Prepare 0.8 release (#1044) 2022-07-29 16:45:57 -04:00
Lucio FrancoandGitHub e87db5280e chore: Prepare aux crates for release (#955) 2022-04-01 10:45:31 -04:00
Lucio FrancoandGitHub 2fe7131a23 chore: Prepare 0.6.0 release (#811) 2021-10-25 10:25:56 -04:00
Lucio FrancoandGitHub cc2b1634e2 chore: Update intra doc link lint name (#805) 2021-10-22 11:31:36 -04:00
David PedersenandGitHub 4001665821 chore: Add deny(broken_intra_doc_links) to all crates (#616) 2021-04-29 15:57:21 +02:00
Lucio FrancoandGitHub fda2d689d4 chore: Prepare 0.4 release (#538)
* Prepare `0.4` release

* Fix cargo issues
2021-01-15 13:38:36 -05:00
CameronandGitHub 6622bb1449 Update tonic logo (#508)
* Use fancy new logo

* Remove shell.nix
2021-01-05 16:03:33 -05:00
Lucio FrancoandGitHub ea7fe66b14 feat(types): Add tonic-types crate (#391) 2020-07-08 18:01:16 -04:00