Skip to content

Commit bdbf47e

Browse files
committed
build: update dependencies to latest where this is simple
Signed-off-by: Joseph Livesey <[email protected]>
1 parent 47ff48c commit bdbf47e

File tree

6 files changed

+32
-29
lines changed

6 files changed

+32
-29
lines changed

Cargo.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ license = "Apache-2.0"
1616
repository = "https://github.com/semiotic-ai/timeline-aggregation-protocol"
1717

1818
[workspace.dependencies]
19-
anyhow = { version = "1.0.95" }
19+
anyhow = { version = "1.0.98" }
2020
anymap3 = "1.0.1"
21-
async-trait = "0.1.85"
21+
async-trait = "0.1.88"
2222
axum = { version = "0.7.5", features = [
2323
"http1",
2424
"json",
@@ -27,28 +27,28 @@ axum = { version = "0.7.5", features = [
2727
"query",
2828
"tokio",
2929
], default-features = false }
30-
clap = { version = "4.5.15", features = ["derive", "env"] }
30+
clap = { version = "4.5.36", features = ["derive", "env"] }
3131
criterion = { version = "0.5.1", features = ["async_std"] }
32-
futures-util = "0.3.28"
33-
hyper = { version = "1", features = ["full"] }
34-
jsonrpsee = { version = "0.24.7", features = ["macros", "server"] }
35-
jsonrpsee-core = "0.24.7"
36-
lazy_static = "1.4.0"
37-
log = "0.4.19"
38-
prometheus = "0.13.3"
39-
prost = "0.13.3"
32+
futures-util = "0.3.31"
33+
hyper = { version = "1.6.0", features = ["full"] }
34+
insta = { version = "1.42.2", features = ["json"] }
35+
jsonrpsee = { version = "0.24.9", features = ["macros", "server"] }
36+
jsonrpsee-core = "0.24.9"
37+
lazy_static = "1.5.0"
38+
log = "0.4.27"
39+
prometheus = "0.14.0"
40+
prost = "0.13.5"
4041
rayon = "1.10.0"
4142
rdkafka = { version = "0.37.0", features = ["tokio", "sasl"] }
42-
serde = { version = "1.0.217", features = ["derive"] }
43-
strum = { version = "0.26.3", features = ["derive"] }
44-
rstest = "0.24.0"
43+
serde = { version = "1.0.219", features = ["derive"] }
44+
serde_json = { version = "1.0.140", features = ["raw_value"] }
45+
strum = { version = "0.27.1", features = ["derive"] }
46+
rstest = "0.25.0"
4547
tap_graph = { version = "0.2.1", path = "../tap_graph", features = ["v2"] }
46-
tokio = { version = "1.43.0", features = ["macros", "signal"] }
48+
thegraph-core = "0.12.0"
49+
thiserror = "2.0.12"
50+
tokio = { version = "1.44.2", features = ["macros", "signal"] }
4751
tonic = { version = "0.12.3", features = ["transport", "zstd"] }
4852
tower = { version = "0.5.2", features = ["util", "steer"] }
49-
tracing-subscriber = "0.3.17"
50-
rand = "0.8.5"
51-
insta = { version = "1.42.0", features = ["json"] }
52-
serde_json = { version = "1.0.137", features = ["raw_value"] }
53-
thegraph-core = "0.12.0"
54-
thiserror = "2.0.11"
53+
tracing-subscriber = "0.3.19"
54+
rand = "0.9.1"

tap_aggregator/src/server.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ mod tests {
496496
use std::{collections::HashSet, str::FromStr};
497497

498498
use jsonrpsee::{core::client::ClientT, http_client::HttpClientBuilder, rpc_params};
499-
use rand::{prelude::*, seq::SliceRandom};
500499
use rstest::*;
501500
use tap_core::{signed_message::Eip712SignedMessage, tap_eip712_domain};
502501
use tap_graph::{Receipt, ReceiptAggregateVoucher};
@@ -600,6 +599,8 @@ mod tests {
600599
#[values(0, 1, 2)] random_seed: u64,
601600
) {
602601
// The keys that will be used to sign the new RAVs
602+
603+
use rand::{rngs::StdRng, seq::IndexedRandom, SeedableRng};
603604
let keys_main = keys();
604605
// Extra keys to test the server's ability to accept multiple signers as input
605606
let keys_0 = keys();
@@ -681,6 +682,8 @@ mod tests {
681682
#[values(0, 1, 2, 3, 4)] random_seed: u64,
682683
) {
683684
// The keys that will be used to sign the new RAVs
685+
686+
use rand::{rngs::StdRng, seq::IndexedRandom, SeedableRng};
684687
let keys_main = keys();
685688
// Extra keys to test the server's ability to accept multiple signers as input
686689
let keys_0 = keys();

tap_core/tests/receipt_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
sync::{Arc, RwLock},
88
};
99

10-
use rand::{seq::SliceRandom, thread_rng};
10+
use rand::{rng, seq::SliceRandom};
1111
use rstest::*;
1212
use tap_core::{
1313
manager::{adapters::ReceiptStore, context::memory::InMemoryContext},
@@ -184,7 +184,7 @@ fn safe_truncate_receipts_test(
184184
let mut receipts_truncated = receipts_orig;
185185

186186
// shuffle the input receipts
187-
receipts_truncated.shuffle(&mut thread_rng());
187+
receipts_truncated.shuffle(&mut rng());
188188

189189
tap_core::manager::adapters::safe_truncate_receipts(&mut receipts_truncated, limit);
190190

tap_graph/src/v1/receipt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
use std::time::{SystemTime, SystemTimeError, UNIX_EPOCH};
1212

13-
use rand::{thread_rng, Rng};
13+
use rand::{rng, Rng};
1414
use serde::{Deserialize, Serialize};
1515
use tap_eip712_message::Eip712SignedMessage;
1616
use tap_receipt::WithValueAndTimestamp;
@@ -42,7 +42,7 @@ impl Receipt {
4242
/// Returns a receipt with provided values
4343
pub fn new(allocation_id: Address, value: u128) -> Result<Self, SystemTimeError> {
4444
let timestamp_ns = get_current_timestamp_u64_ns()?;
45-
let nonce = thread_rng().gen::<u64>();
45+
let nonce = rng().random::<u64>();
4646
Ok(Self {
4747
allocation_id,
4848
timestamp_ns,

tap_graph/src/v2/receipt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
use std::time::{SystemTime, SystemTimeError, UNIX_EPOCH};
77

8-
use rand::{thread_rng, Rng};
8+
use rand::{rng, Rng};
99
use serde::{Deserialize, Serialize};
1010
use tap_eip712_message::Eip712SignedMessage;
1111
use tap_receipt::WithValueAndTimestamp;
@@ -50,7 +50,7 @@ impl Receipt {
5050
value: u128,
5151
) -> Result<Self, SystemTimeError> {
5252
let timestamp_ns = get_current_timestamp_u64_ns()?;
53-
let nonce = thread_rng().gen::<u64>();
53+
let nonce = rng().random::<u64>();
5454
Ok(Self {
5555
allocation_id,
5656
payer,

tap_integration_tests/tests/showcase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn query_price() -> &'static [u128] {
133133
let mut v = Vec::new();
134134

135135
for _ in 0..num_queries() {
136-
v.push(rng.gen::<u128>() % 100);
136+
v.push(rng.random::<u128>() % 100);
137137
}
138138
Box::leak(v.into_boxed_slice())
139139
}

0 commit comments

Comments
 (0)