Commit Graph

46 Commits

Author SHA1 Message Date
Lucio Franco ae75801604 chore: Prepare 0.9.2 release (#1362) 2023-04-17 15:16:32 +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
Rafael Lemos 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 Lemos 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
tottoto c1906074b6 chore(types): Remove unnecesarry unreachable_pub lint allowing (#1311) 2023-03-13 14:28:04 +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
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
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
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
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 3f4d7432b9 chore(types): Turn off unused features (#1266) 2023-02-14 14:47:43 +00: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 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 4e5c0b29ba chore: Add clippy to ci (#1189) 2022-12-14 09:42:33 -05:00
tottoto bf22a740c3 chore: Update to 2021 edition (#1188) 2022-12-13 15:16:49 -05:00
tottoto 2dd09c02bd chore: Fix clippy lint (#1181) 2022-12-13 11:29:29 -05:00
Rafael Lemos 3076e8251e feat(types): add support for DebugInfo error message type (#1179) 2022-12-12 14:11:09 -05:00
Rafael Lemos 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 Franco dc079c12bf chore: Prepare v0.8.3 release (#1164) 2022-11-28 13:35:48 -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
Rafael Lemos 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 Franco e87db5280e chore: Prepare aux crates for release (#955) 2022-04-01 10:45:31 -04:00
Jesse Szwedko c78274e3fe feat: Update prost to 0.10 (#948) 2022-03-30 10:43:06 -04:00
Sylwester Rąpała c9e78c4d65 chore: Fulfill MIT license requirments (#916) 2022-02-18 13:56:47 -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 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
Eliza Weisman 09805ece45 feat: Update prost and friends to 0.9 (#791) 2021-10-19 10:59:28 -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
David Pedersen 4001665821 chore: Add deny(broken_intra_doc_links) to all crates (#616) 2021-04-29 15:57:21 +02:00
Lucio Franco fda2d689d4 chore: Prepare 0.4 release (#538)
* Prepare `0.4` release

* Fix cargo issues
2021-01-15 13:38:36 -05:00
Quentin Perez fdda5ae26a Upgrade to Tokio 1.0.0 ecosystem (#530)
* Upgrade Tonic to Tokio 1.0

Work in progress for updating Tonic to Tokio 1.0. Since tower has not
been released to crates.io, a git dependency is taken instead.

* Upgrade Tonic to Tokio 1.0 phase 2

* tonic: remove tower-* deps

* Apply suggestions from code review

Co-authored-by: Ed Marshall <marshaled@protonmail.com>
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2021-01-11 12:18:34 -05:00
Cameron 6622bb1449 Update tonic logo (#508)
* Use fancy new logo

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