Skip to content

Commit cef5651

Browse files
authored
bump deps (#109)
Signed-off-by: Matt Klein <mklein@bitdrift.io>
1 parent 50b115c commit cef5651

45 files changed

Lines changed: 967 additions & 642 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 841 additions & 523 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ ahash = "0.8"
1616
anyhow = "1"
1717
assert_matches = "1.5.0"
1818
async-trait = "0.1"
19-
aws-config = "1.8.12"
20-
aws-credential-types = "1.2.11"
21-
aws-sdk-sqs = "1.92.0"
22-
aws-sigv4 = "1.3.7"
23-
aws-smithy-async = "1.2.7"
24-
aws-smithy-http = "0.62.6"
25-
aws-smithy-runtime-api = { version = "1.10.0", features = ["test-util"] }
26-
aws-smithy-types = "1.3.6"
19+
aws-config = "1.8.15"
20+
aws-credential-types = "1.2.14"
21+
aws-sdk-sqs = "1.97.0"
22+
aws-sigv4 = "1.4.2"
23+
aws-smithy-async = "1.2.14"
24+
aws-smithy-http = "0.63.6"
25+
aws-smithy-runtime-api = { version = "1.11.6", features = ["test-util"] }
26+
aws-smithy-types = "1.4.7"
2727
axum = "0.8.8"
2828
backoff = { version = "0.4.0", features = ["tokio"] }
2929
base64ct = "1.8.3"
@@ -42,19 +42,19 @@ bd-test-helpers = { git = "https://github.com/bitdriftlabs/shared-core.gi
4242
bd-time = { git = "https://github.com/bitdriftlabs/shared-core.git" }
4343
built = { version = "0.8", features = ["git2"] }
4444
bytes = "1"
45-
cc = "1.2.54"
46-
clap = { version = "4.5.54", features = ["derive", "env"] }
45+
cc = "1.2.58"
46+
clap = { version = "4.6.0", features = ["derive", "env"] }
4747
comfy-table = "7.2.2"
4848
console-subscriber = "0.5.0"
4949
criterion = { version = "0.8", features = ["html_reports"] }
50-
ctor = "0.6.3"
50+
ctor = "0.7.0"
5151
cuckoofilter = "0.5.0"
5252
dashmap = { version = "6", features = ["raw-api"] }
53-
deadpool = { version = "0.12", features = ["managed", "rt_tokio_1"] }
53+
deadpool = { version = "0.13", features = ["managed", "rt_tokio_1"] }
5454
event-listener = "5.4.1"
5555
fst = "0.4.7"
5656
futures = "0.3"
57-
futures-util = "0.3.31"
57+
futures-util = "0.3.32"
5858
gettid = "0.1.4"
5959
hashbrown = "0.16.1"
6060
http = "1.4.0"
@@ -69,13 +69,13 @@ hyper-rustls = { version = "0.27.7", default-features = false, features = [
6969
"aws-lc-rs",
7070
] }
7171

72-
hyper-util = { version = "0.1.19", features = ["client", "client-legacy"] }
72+
hyper-util = { version = "0.1.20", features = ["client", "client-legacy"] }
7373
hyperloglogplus = "0.4.1"
7474
intrusive-collections = "0.10.0"
7575
itertools = "0.14.0"
76-
k8s-openapi = { version = "0.27.0", features = ["v1_31"] }
76+
k8s-openapi = { version = "0.27.1", features = ["v1_31"] }
7777

78-
kube = { version = "3.0.0", features = [
78+
kube = { version = "3.1.0", features = [
7979
"runtime",
8080
"derive",
8181
"rustls-tls",
@@ -102,25 +102,25 @@ protobuf-json-mapping = { git = "https://github.com/bitdriftlabs/rust-protobuf.g
102102

103103
quickcheck = "1"
104104
quickcheck_macros = "1"
105-
rand = { version = "0.9", features = ["small_rng"] }
106-
rand_xoshiro = "0.7"
105+
rand = { version = "0.10" }
106+
rand_xoshiro = "0.8"
107107
regex = "1"
108108

109-
reqwest = { version = "0.13.1", features = ["json"] }
109+
reqwest = { version = "0.13.2", features = ["json"] }
110110

111111
reusable-fmt = "0.2.0"
112-
rustls = "0.23.36"
112+
rustls = "0.23.37"
113113
serde = { version = "1", features = ["derive"] }
114114
serde_json = "1"
115115
serde_yaml = "0.9.34"
116116
snap = "1"
117-
socket2 = "0.6.2"
118-
tempfile = "3.24"
117+
socket2 = "0.6.3"
118+
tempfile = "3.27"
119119
thiserror = "2"
120120
tikv-jemalloc-ctl = "0.6.1"
121121
tikv-jemallocator.features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"]
122122
tikv-jemallocator.version = "0.6.1"
123-
time = { version = "0.3.45", features = ["formatting"] }
123+
time = { version = "0.3.47", features = ["formatting"] }
124124
tokio = { version = "1", features = ["full", "parking_lot", "tracing", "test-util"] }
125125
tokio-stream = "0.1.18"
126126
tokio-test = "0.4"
@@ -129,7 +129,7 @@ topological-sort = "0.2.2"
129129
tracing = "0.1.44"
130130
unwrap-infallible = "1.0.0"
131131
url = "2.5.8"
132-
uuid = { version = "1.19.0", features = ["v4"] }
132+
uuid = { version = "1.23.0", features = ["v4"] }
133133

134134
vrl = { git = "https://github.com/mattklein123/vrl.git", branch = "performance-20260113", default-features = false, features = [
135135
"compiler",

pulse-metrics/src/metric_generator.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::protos::metric::{
1616
};
1717
use pulse_protobuf::protos::pulse::config::common::v1::common::WireProtocol;
1818
use pulse_protobuf::protos::pulse::config::common::v1::common::wire_protocol::Protocol_type;
19-
use rand::Rng;
19+
use rand::RngExt;
2020
use rand::seq::IndexedRandom;
2121
use rand_xoshiro::Xoroshiro128StarStar;
2222
use rand_xoshiro::rand_core::SeedableRng;
@@ -102,10 +102,7 @@ impl MetricGenerator {
102102
}
103103

104104
pub fn name_terms(&mut self, terms: usize) -> String {
105-
let terms: Vec<_> = WORDS
106-
.choose_multiple(&mut self.rng, terms)
107-
.copied()
108-
.collect();
105+
let terms: Vec<_> = WORDS.sample(&mut self.rng, terms).copied().collect();
109106
terms.join(self.sep)
110107
}
111108

pulse-metrics/src/pipeline/processor/internode/mod.rs

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -766,33 +766,43 @@ fn make_router(handler: &Arc<InternodeHandler>) -> Router {
766766
Some(&handler.endpoint_stats),
767767
false,
768768
)
769-
.merge(make_unary_router(
770-
&ServiceMethod::<PeersComparisonRequest, PeersComparisonResponse>::new(
771-
"Internode",
772-
"GetPeersComparison",
773-
),
774-
handler.clone(),
775-
|_| {},
776-
None,
777-
false,
778-
))
779-
.merge(make_unary_router(
780-
&ServiceMethod::<LastElidedTimestampRequest, LastElidedTimestampResponse>::new(
781-
"Internode",
782-
"LastElidedTimestamp",
783-
),
784-
handler.clone(),
785-
|_| {},
786-
None,
787-
false,
788-
))
789-
.merge(make_unary_router(
790-
&ServiceMethod::<ReadyRequest, ReadyResponse>::new("Internode", "Ready"),
791-
handler.clone(),
792-
|_| {},
793-
None,
794-
false,
795-
))
769+
.unwrap()
770+
.merge(
771+
make_unary_router(
772+
&ServiceMethod::<PeersComparisonRequest, PeersComparisonResponse>::new(
773+
"Internode",
774+
"GetPeersComparison",
775+
),
776+
handler.clone(),
777+
|_| {},
778+
None,
779+
false,
780+
)
781+
.unwrap(),
782+
)
783+
.merge(
784+
make_unary_router(
785+
&ServiceMethod::<LastElidedTimestampRequest, LastElidedTimestampResponse>::new(
786+
"Internode",
787+
"LastElidedTimestamp",
788+
),
789+
handler.clone(),
790+
|_| {},
791+
None,
792+
false,
793+
)
794+
.unwrap(),
795+
)
796+
.merge(
797+
make_unary_router(
798+
&ServiceMethod::<ReadyRequest, ReadyResponse>::new("Internode", "Ready"),
799+
handler.clone(),
800+
|_| {},
801+
None,
802+
false,
803+
)
804+
.unwrap(),
805+
)
796806
}
797807

798808
/// Generate a server for inbound grpc requests

pulse-metrics/src/pipeline/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// LICENSE file or at:
66
// https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt
77

8+
use rand::RngExt;
89
use rand::rngs::SmallRng;
9-
use rand::{Rng, SeedableRng};
1010
use std::cell::RefCell;
1111
use std::sync::Arc;
1212
use std::sync::atomic::{AtomicI64, Ordering};
@@ -84,7 +84,7 @@ pub struct RealDurationJitter {}
8484
impl RealDurationJitter {
8585
fn jitter_worker(min_millis: u64, max_millis: u64) -> Duration {
8686
thread_local! {
87-
static RANDOM: RefCell<SmallRng> = RefCell::new(SmallRng::from_os_rng());
87+
static RANDOM: RefCell<SmallRng> = RefCell::new(rand::make_rng());
8888
}
8989

9090
let jittered_as_millis =

pulse-metrics/src/reservoir_timer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// LICENSE file or at:
66
// https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt
77

8-
use rand::{RngCore, SeedableRng};
9-
use rand_xoshiro::Xoshiro128StarStar;
8+
use rand::Rng;
9+
use rand::rngs::SmallRng;
1010
use std::cell::RefCell;
1111

1212
// This is a basic reservoir sampling implementation adapted from statsrelay. A reservoir is kept
@@ -33,7 +33,7 @@ impl ReservoirTimer {
3333
pub fn aggregate(&mut self, value: f64, sample_rate: f64) {
3434
thread_local! {
3535
// Fast non crypto rng.
36-
static RANDOM: RefCell<Xoshiro128StarStar> = RefCell::new(Xoshiro128StarStar::from_os_rng());
36+
static RANDOM: RefCell<SmallRng> = RefCell::new(rand::make_rng());
3737
}
3838

3939
// Do an initial fill if we haven't filled the full reservoir.

pulse-metrics/src/vrl/pulse_inc_counter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ impl Function for PulseIncCounter {
9191
)));
9292
};
9393

94+
#[allow(clippy::result_large_err)]
9495
let tag_names: Vec<String> = tag_names
9596
.into_iter()
9697
.map(|tag_name| Ok::<_, ValueError>(tag_name.try_bytes_utf8_lossy()?.to_string()))

pulse-protobuf/proto/pulse/config/processor/v1/internode.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ message InternodeConfig {
7575
repeated NodeConfig nodes = 4 [(validate.rules).repeated.min_items = 1];
7676

7777
// Configuration for internode requests. If not specified, default values are used.
78-
RequestPolicy request_policy = 5 [(validate.rules).duration.gt = {}];
78+
RequestPolicy request_policy = 5;
7979

8080
// Configuration for health checks. If not specified, health checks are disabled. Take great
8181
// care in configuring health checks as settings that are too aggressive can cause flapping

pulse-protobuf/src/protos/opentelemetry/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt
77

88
// This file is generated by rust-protobuf 4.0.0-alpha.0. Do not edit
9-
// .proto file is parsed by protoc 33.2
9+
// .proto file is parsed by protoc 34.1
1010
// @generated
1111

1212
// https://github.com/rust-lang/rust-clippy/issues/702

pulse-protobuf/src/protos/opentelemetry/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt
77

88
// This file is generated by rust-protobuf 4.0.0-alpha.0. Do not edit
9-
// .proto file is parsed by protoc 33.2
9+
// .proto file is parsed by protoc 34.1
1010
// @generated
1111

1212
// https://github.com/rust-lang/rust-clippy/issues/702

0 commit comments

Comments
 (0)