Skip to content

Commit

Permalink
Update to prio 0.12 (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Mar 22, 2023
1 parent 5524439 commit 00be66d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ janus_interop_binaries = { version = "0.3", path = "interop_binaries" }
janus_messages = { version = "0.3", path = "messages" }
k8s-openapi = { version = "0.16.0", features = ["v1_24"] } # keep this version in sync with what is referenced by the indirect dependency via `kube`
kube = { version = "0.75.0", default-features = false, features = ["client"] }
prio = { version = "0.11.1", features = ["multithreaded"] }
prio = { version = "0.12.0", features = ["multithreaded"] }

[profile.dev]
# Disabling debug info improves build speeds & reduces build artifact sizes, which helps CI caching.
Expand Down
4 changes: 2 additions & 2 deletions core/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum VdafInstance {
/// A vector of `Prio3` counters.
Prio3CountVec { length: usize },
/// A `Prio3` sum.
Prio3Sum { bits: u32 },
Prio3Sum { bits: usize },
/// A vector of `Prio3` sums.
Prio3SumVec { bits: usize, length: usize },
/// A `Prio3` histogram.
Expand Down Expand Up @@ -617,7 +617,7 @@ mod tests {
len: 1,
},
Token::Str("bits"),
Token::U32(64),
Token::U64(64),
Token::StructVariantEnd,
],
);
Expand Down
2 changes: 1 addition & 1 deletion interop_binaries/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub enum VdafObject {
length: NumberAsString<usize>,
},
Prio3Sum {
bits: NumberAsString<u32>,
bits: NumberAsString<usize>,
},
Prio3SumVec {
bits: NumberAsString<usize>,
Expand Down
2 changes: 1 addition & 1 deletion messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hex = "0.4"
num_enum = "0.5.11"
# We can't pull prio in from the workspace because that would enable default features, and we do not
# want prio/crypto-dependencies
prio = { version = "0.11.1", default-features = false }
prio = { version = "0.12.0", default-features = false }
rand = "0.8"
serde = { version = "1.0.158", features = ["derive"] }
thiserror = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/src/bin/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ struct Options {
length: Option<usize>,
/// Bit length of measurements, for use with --vdaf=sum
#[clap(long, help_heading = "VDAF Algorithm and Parameters")]
bits: Option<u32>,
bits: Option<usize>,
/// Comma-separated list of bucket boundaries, for use with --vdaf=histogram
#[clap(
long,
Expand Down

0 comments on commit 00be66d

Please sign in to comment.