Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.23.2 #1043

Merged
merged 5 commits into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changelog/v0.23.2/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*Dec 7, 2021*

This release focuses on the removal of
[`chrono`](https://crates.io/crates/chrono) as our primary dependency for
dealing with time, and replaces it with the
[`time`](https://crates.io/crates/time) crate.

This is necessarily a breaking change, but is released as v0.23.2 as per our
current [versioning
scheme](https://github.com/informalsystems/tendermint-rs#versioning).
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# CHANGELOG

## v0.23.2

*Dec 7, 2021*

This release focuses on the removal of
[`chrono`](https://crates.io/crates/chrono) as our primary dependency for
dealing with time, and replaces it with the
[`time`](https://crates.io/crates/time) crate.

This is necessarily a breaking change, but is released as v0.23.2 as per our
current [versioning
scheme](https://github.com/informalsystems/tendermint-rs#versioning).

### BREAKING CHANGES

- `[tendermint]` Reform `tendermint::Time`
([#1030](https://github.com/informalsystems/tendermint-rs/issues/1030)):
* The struct content is made private.
* The range of acceptable values is restricted to years 1-9999
(as reckoned in UTC).
* Removed conversions from/to `chrono::DateTime<chrono::Utc>`.
* Changes in error variants: removed `TimestampOverflow`, replaced with
`TimestampNanosOutOfRange`; removed `ChronoParse`, replaced with `TimeParse`.
- `[tendermint-rpc]` Use `OffsetDateTime` and `Date` types provided by the `time` crate
in query operands instead of their `chrono` counterparts.
([#1030](https://github.com/informalsystems/tendermint-rs/issues/1030))

### IMPROVEMENTS

- `[tendermint]` Deprecated `signature::ED25519_SIGNATURE_SIZE`
in favor of `Ed25519Signature::BYTE_SIZE`
([#1023](https://github.com/informalsystems/tendermint-rs/issues/1023))
- 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)):
* 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`.
mzabaluev marked this conversation as resolved.
Show resolved Hide resolved

## v0.23.1

*Nov 15, 2021*
Expand Down
4 changes: 2 additions & 2 deletions abci/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-abci"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down Expand Up @@ -33,7 +33,7 @@ binary = [
[dependencies]
bytes = { version = "1.0", default-features = false }
prost = { version = "0.9", default-features = false }
tendermint-proto = { version = "0.23.1", default-features = false, path = "../proto" }
tendermint-proto = { version = "0.23.2", default-features = false, path = "../proto" }
tracing = { version = "0.1", default-features = false }
flex-error = { version = "0.4.4", default-features = false }
structopt = { version = "0.3", optional = true, default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-config"
version = "0.23.1" # Also update `html_root_url` in lib.rs and
version = "0.23.2" # Also update `html_root_url` in lib.rs and
# depending crates (rpc, light-node, ..) when bumping this
license = "Apache-2.0"
homepage = "https://www.tendermint.com/"
Expand Down Expand Up @@ -28,7 +28,7 @@ rustdoc-args = ["--cfg", "docsrs"]
crate-type = ["cdylib", "rlib"]

[dependencies]
tendermint = { version = "0.23.1", default-features = false, path = "../tendermint" }
tendermint = { version = "0.23.2", default-features = false, path = "../tendermint" }
flex-error = { version = "0.4.4", default-features = false }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand Down
6 changes: 3 additions & 3 deletions light-client-js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-light-client-js"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -24,8 +24,8 @@ serde = { version = "1.0", default-features = false, features = [ "derive" ] }
serde_json = { version = "1.0", default-features = false }
# TODO(thane): Remove once https://github.com/rustwasm/wasm-bindgen/issues/2508 is resolved
syn = { version = "=1.0.65", default-features = false }
tendermint = { version = "0.23.1", default-features = false, path = "../tendermint" }
tendermint-light-client = { version = "0.23.1", default-features = false, path = "../light-client" }
tendermint = { version = "0.23.2", default-features = false, path = "../tendermint" }
tendermint-light-client = { version = "0.23.2", default-features = false, path = "../light-client" }
wasm-bindgen = { version = "0.2.63", default-features = false, features = [ "serde-serialize" ] }

# The `console_error_panic_hook` crate provides better debugging of panics by
Expand Down
6 changes: 3 additions & 3 deletions light-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-light-client"
version = "0.23.1"
version = "0.23.2"
edition = "2018"
license = "Apache-2.0"
readme = "README.md"
Expand Down Expand Up @@ -37,8 +37,8 @@ unstable = []
mbt = []

[dependencies]
tendermint = { version = "0.23.1", path = "../tendermint", default-features = false }
tendermint-rpc = { version = "0.23.1", path = "../rpc", default-features = false }
tendermint = { version = "0.23.2", path = "../tendermint", default-features = false }
tendermint-rpc = { version = "0.23.2", path = "../rpc", default-features = false }

contracts = { version = "0.4.0", default-features = false }
crossbeam-channel = { version = "0.4.2", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion light-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
nonstandard_style
)]
#![doc(
html_root_url = "https://docs.rs/tendermint-light-client/0.23.1",
html_root_url = "https://docs.rs/tendermint-light-client/0.23.2",
html_logo_url = "https://raw.githubusercontent.com/informalsystems/tendermint-rs/master/img/logo-tendermint-rs_3961x4001.png"
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Expand Down
8 changes: 4 additions & 4 deletions p2p/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-p2p"
version = "0.23.1"
version = "0.23.2"
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/informalsystems/tendermint-rs"
Expand Down Expand Up @@ -44,9 +44,9 @@ aead = { version = "0.4.1", default-features = false }
flex-error = { version = "0.4.4", default-features = false }

# path dependencies
tendermint = { path = "../tendermint", version = "0.23.1", default-features = false }
tendermint-proto = { path = "../proto", version = "0.23.1", default-features = false }
tendermint-std-ext = { path = "../std-ext", version = "0.23.1", default-features = false }
tendermint = { path = "../tendermint", version = "0.23.2", default-features = false }
tendermint-proto = { path = "../proto", version = "0.23.2", default-features = false }
tendermint-std-ext = { path = "../std-ext", version = "0.23.2", default-features = false }

# optional dependencies
prost-derive = { version = "0.9", optional = true }
2 changes: 1 addition & 1 deletion p2p/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
unused_qualifications
)]
#![doc(
html_root_url = "https://docs.rs/tendermint-p2p/0.23.1",
html_root_url = "https://docs.rs/tendermint-p2p/0.23.2",
html_logo_url = "https://raw.githubusercontent.com/informalsystems/tendermint-rs/master/img/logo-tendermint-rs_3961x4001.png"
)]

Expand Down
2 changes: 1 addition & 1 deletion pbt-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-pbt-gen"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-proto"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![deny(warnings, trivial_casts, trivial_numeric_casts, unused_import_braces)]
#![allow(clippy::large_enum_variant)]
#![forbid(unsafe_code)]
#![doc(html_root_url = "https://docs.rs/tendermint-proto/0.23.1")]
#![doc(html_root_url = "https://docs.rs/tendermint-proto/0.23.2")]

extern crate alloc;

Expand Down
8 changes: 4 additions & 4 deletions rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-rpc"
version = "0.23.1"
version = "0.23.2"
edition = "2018"
license = "Apache-2.0"
homepage = "https://www.tendermint.com/"
Expand Down Expand Up @@ -68,9 +68,9 @@ pin-project = { version = "1.0.1", default-features = false }
serde = { version = "1", default-features = false, features = [ "derive" ] }
serde_bytes = { version = "0.11", default-features = false }
serde_json = { version = "1", default-features = false, features = ["std"] }
tendermint-config = { version = "0.23.1", path = "../config", default-features = false }
tendermint = { version = "0.23.1", default-features = false, path = "../tendermint" }
tendermint-proto = { version = "0.23.1", default-features = false, path = "../proto" }
tendermint-config = { version = "0.23.2", path = "../config", default-features = false }
tendermint = { version = "0.23.2", default-features = false, path = "../tendermint" }
tendermint-proto = { version = "0.23.2", default-features = false, path = "../proto" }
thiserror = { version = "1", default-features = false }
time = { version = "0.3", default-features = false, features = ["macros", "parsing"] }
uuid = { version = "0.8", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion std-ext/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-std-ext"
version = "0.23.1"
version = "0.23.2"
edition = "2018"
license = "Apache-2.0"
homepage = "https://www.tendermint.com/"
Expand Down
4 changes: 2 additions & 2 deletions tendermint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint"
version = "0.23.1" # Also update `html_root_url` in lib.rs and
version = "0.23.2" # Also update `html_root_url` in lib.rs and
# depending crates (rpc, light-node, ..) when bumping this
license = "Apache-2.0"
homepage = "https://www.tendermint.com/"
Expand Down Expand Up @@ -50,7 +50,7 @@ sha2 = { version = "0.9", default-features = false }
signature = { version = "1.2", default-features = false }
subtle = { version = "2", default-features = false }
subtle-encoding = { version = "0.5", default-features = false, features = ["bech32-preview"] }
tendermint-proto = { version = "0.23.1", default-features = false, path = "../proto" }
tendermint-proto = { version = "0.23.2", default-features = false, path = "../proto" }
time = { version = "0.3", default-features = false, features = ["macros", "parsing"] }
zeroize = { version = "1.1", default-features = false, features = ["zeroize_derive", "alloc"] }
flex-error = { version = "0.4.4", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion tendermint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)]
#![forbid(unsafe_code)]
#![doc(
html_root_url = "https://docs.rs/tendermint/0.23.1",
html_root_url = "https://docs.rs/tendermint/0.23.2",
html_logo_url = "https://raw.githubusercontent.com/informalsystems/tendermint-rs/master/img/logo-tendermint-rs_3961x4001.png"
)]

Expand Down
2 changes: 1 addition & 1 deletion test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tendermint-test"
description = "Tendermint workspace tests and common utilities for testing."
version = "0.23.1"
version = "0.23.2"
edition = "2018"
license = "Apache-2.0"
categories = ["development", "test", "tools"]
Expand Down
4 changes: 2 additions & 2 deletions testgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-testgen"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
readme = "README.md"
Expand All @@ -16,7 +16,7 @@ description = """
"""

[dependencies]
tendermint = { version = "0.23.1", path = "../tendermint" }
tendermint = { version = "0.23.2", path = "../tendermint" }
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false, features = ["std"] }
ed25519-dalek = { version = "1", default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions tools/abci-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "abci-test"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
description = """
Expand All @@ -14,9 +14,9 @@ description = """
flex-error = { version = "0.4.4", default-features = false, features = ["std", "eyre_tracer"] }
futures = "0.3"
structopt = "0.3"
tendermint = { version = "0.23.1", path = "../../tendermint" }
tendermint-config = { version = "0.23.1", path = "../../config" }
tendermint-rpc = { version = "0.23.1", path = "../../rpc", features = [ "websocket-client" ] }
tendermint = { version = "0.23.2", path = "../../tendermint" }
tendermint-config = { version = "0.23.2", path = "../../config" }
tendermint-rpc = { version = "0.23.2", path = "../../rpc", features = [ "websocket-client" ] }
tracing = "0.1"
tracing-subscriber = "0.2"
tokio = { version = "1", features = ["full"] }
6 changes: 3 additions & 3 deletions tools/kvstore-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ edition = "2018"

[dev-dependencies]
futures = "0.3"
tendermint = { version = "0.23.1", path = "../../tendermint" }
tendermint-light-client = { version = "0.23.1", path = "../../light-client", features = ["unstable"] }
tendermint-rpc = { version = "0.23.1", path = "../../rpc", features = [ "http-client", "websocket-client" ] }
tendermint = { version = "0.23.2", path = "../../tendermint" }
tendermint-light-client = { version = "0.23.2", path = "../../light-client", features = ["unstable"] }
tendermint-rpc = { version = "0.23.2", path = "../../rpc", features = [ "http-client", "websocket-client" ] }
tokio = { version = "1.0", features = [ "rt-multi-thread", "macros" ] }
tracing = "0.1"
tracing-subscriber = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion tools/rpc-probe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tendermint-rpc-probe"
version = "0.23.1"
version = "0.23.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down