-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll back time-rs dependency and remove methods that require version …
…0.3.5 (#1048) * Relax dependency on time 0.3 Do not require time 0.3.5, because ibc-rs has another dependency that pins time at =0.3.2. This means the recently added methods Time::checked_add and Time::checked_sub have to be removed. Fortunately, they haven't made it into a 0.23.x release yet. * Updated changelog for #1048
- Loading branch information
Showing
4 changed files
with
7 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
- Remove dependencies on the `chrono` crate. | ||
([#1030](https://github.com/informalsystems/tendermint-rs/issues/1030)) | ||
- `[tendermint]` Improve `tendermint::Time` | ||
([#1030](https://github.com/informalsystems/tendermint-rs/issues/1030)): | ||
([#1036](https://github.com/informalsystems/tendermint-rs/issues/1036), | ||
revised by [#1048](https://github.com/informalsystems/tendermint-rs/pull/1048)): | ||
* Restrict the validity range of `Time` to dates with years in the range | ||
1-9999, to match the specification of protobuf message `Timestamp`. | ||
Add an `ErrorDetail` variant `DateOutOfRange` to report when this | ||
restriction is not met. | ||
* Added a conversion to, and a fallible conversion from, | ||
`OffsetDateTime` of the `time` crate. | ||
* Added `Time` methods `checked_add` and `checked_sub`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters