Skip to content

Commit

Permalink
deps: update prost to 0.12.2
Browse files Browse the repository at this point in the history
This release of prost includes the support for auto-generated names:

tokio-rs/prost#926
  • Loading branch information
redshiftzero committed Nov 21, 2023
1 parent c05bf48 commit fbda6c8
Show file tree
Hide file tree
Showing 14 changed files with 117 additions and 129 deletions.
205 changes: 93 additions & 112 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/bin/pclientd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tonic = "0.10"
tonic-web = "0.10.0"
tonic-reflection = "0.10.0"
bytes = { version = "1", features = ["serde"] }
prost = "0.12"
prost = "0.12.2"
futures = "0.3"
hex = "0.4"
metrics = "0.19.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/pd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tendermint-light-client-verifier = "0.34.0"
ibc-types = { version = "0.7.0" }

ibc-proto = { version = "0.37.0", default-features = false, features = ["server"] }
prost = "0.12"
prost = "0.12.2"
toml = "0.5"
# We don't need this crate at all, but its upstream published a breaking change as
# 0.7.1 (also prost-related), and depending on an exact version here will exclude
Expand Down
2 changes: 1 addition & 1 deletion crates/core/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bitvec = "1"
hex = "0.4"
base64 = "0.20"
tempfile = "3.3.0"
prost = "0.12"
prost = "0.12.2"
rand_chacha = "0.3"
parking_lot = "0.12"

Expand Down
8 changes: 4 additions & 4 deletions crates/core/component/dao/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ penumbra-storage = { path = "../../../storage", optional = true }
penumbra-component = { path = "../component", optional = true }
penumbra-chain = { path = "../chain", default-features = false }
penumbra-shielded-pool = { path = "../shielded-pool", default-features = false }
penumbra-asset = { path = "../../../core/asset", default-features = false }
penumbra-num = { path = "../../../core/num", default-features = false }
penumbra-keys = { path = "../../../core/keys", default-features = false }
penumbra-asset = { path = "../../../core/asset", default-features = false }
penumbra-num = { path = "../../../core/num", default-features = false }
penumbra-keys = { path = "../../../core/keys", default-features = false }

# Crates.io deps
ark-ff = { version = "0.4", default_features = false }
async-trait = "0.1.52"
hex = "0.4"
anyhow = "1"
tracing = "0.1"
prost = "0.12"
prost = "0.12.2"
serde = { version = "1", features = ["derive"] }
metrics = "0.19.0"
pbjson-types = "0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/core/component/dex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ hex = "0.4"
thiserror = "1"
anyhow = "1"
tracing = "0.1"
prost = "0.12"
prost = "0.12.2"
serde = { version = "1", features = ["derive"] }
metrics = "0.19.0"
pbjson-types = "0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/core/component/ibc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async-trait = "0.1.52"
hex = "0.4"
anyhow = "1"
tracing = "0.1"
prost = "0.12"
prost = "0.12.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
metrics = "0.19.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/core/component/shielded-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ark-serialize = "0.4"
ark-groth16 = { version = "0.4", default-features = false }
ark-snark = "0.4"
metrics = "0.19.0"
prost = "0.12"
prost = "0.12.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tracing = "0.1"
Expand Down
9 changes: 8 additions & 1 deletion crates/core/keys/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use anyhow::Context;
use ark_serialize::CanonicalDeserialize;
use decaf377::Fq;
use f4jumble::{f4jumble, f4jumble_inv};
use fmd::ExpandedClueKey;
use penumbra_proto::{
penumbra::core::keys::v1alpha1 as pb, serializers::bech32str, DomainType, TypeUrl,
};
Expand Down Expand Up @@ -63,12 +64,18 @@ impl Address {
/// Constructs a payment address from its components.
///
/// Returns `None` if the bytes in pk_d are a non-canonical representation
/// of an [`Fq`] `s` value.
/// of an [`Fq`] `s` value or if the clue key is invalid.
pub fn from_components(d: Diversifier, pk_d: ka::Public, ck_d: fmd::ClueKey) -> Option<Self> {
let expanded_clue_key = ExpandedClueKey::new(&ck_d).ok_or(None);
if expanded_clue_key.is_none() {
return None;
}

// XXX ugly -- better way to get our hands on the s value?
// add to decaf377::Encoding? there's compress_to_field already...
if let Ok(transmission_key_s) = Fq::deserialize_compressed(&pk_d.0[..]) {
// don't need an error type here, caller will probably .expect anyways

Some(Self {
d,
g_d: d.diversified_generator(),
Expand Down
2 changes: 1 addition & 1 deletion crates/custody/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serde_with = { version = "2.2", features = ["hex"] }
tracing = "0.1"
tonic = "0.10"
bytes = { version = "1", features = ["serde"] }
prost = "0.12"
prost = "0.12.2"
futures = "0.3"
hex = "0.4"
rand_core = "0.6"
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
decaf377-fmd = { path = "../crypto/decaf377-fmd" }
decaf377-rdsa = { version = "0.7" }
bytes = { version = "1", features = ["serde"] }
prost = "0.12"
prost = "0.12.2"
tonic = { version = "0.10", optional = true }
serde = { version = "1", features = ["derive"] }
hex = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions crates/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ parking_lot = "0.12"
pin-project = "1.0.12"
smallvec = { version = "1.10", features = ["union", "const_generics"] }

# Tendermint/IBC crates
# Tendermint/IBC crates
ics23 = "0.11.0"
tendermint = { version = "0.34.0", default-features = false }
borsh = "0.10.3"
sha2 = "0.10.6"

# Used for RPC.
tonic = { version = "0.10", optional = true }
prost = { version = "0.11", optional = true }
prost = { version = "0.12.2", optional = true }
serde = { version = "1", optional = true }
pbjson = { version = "0.5", optional = true }
ibc-proto = { version = "0.37.0", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/view/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tracing-subscriber = "0.2"
tonic = "0.10"
url = "2"
bytes = { version = "1", features = ["serde"] }
prost = "0.12"
prost = "0.12.2"
futures = "0.3"
hex = "0.4"
metrics = "0.19.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/proto-compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = false

[dependencies]
anyhow = "1"
prost = "0.12"
prost = "0.12.2"
prost-types = "0.12"
prost-build = "0.12"
tonic-build = { version = "0.10.0", features = ["cleanup-markdown"] }
Expand Down

0 comments on commit fbda6c8

Please sign in to comment.