Skip to content

Commit 1e3261c

Browse files
committed
Crate update / cleanup
1 parent 62b2b8a commit 1e3261c

File tree

10 files changed

+13
-25
lines changed

10 files changed

+13
-25
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license-file = "LICENSE.txt"
88

99
[workspace.dependencies]
1010
derive_builder = "0.20"
11-
derive_more = { version = "1.0", features = ["constructor", "display", "from", "into", "debug"] }
11+
derive_more = { version = "2.0", features = ["constructor", "display", "from", "into", "debug"] }
1212
thiserror = "2"
1313
tonic = "0.12"
1414
tonic-build = "0.12"

client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ hyper = { version = "1.4.1" }
2828
hyper-util = "0.1.6"
2929
opentelemetry = { workspace = true, features = ["metrics"], optional = true }
3030
parking_lot = "0.12"
31-
prost-types = { workspace = true }
3231
slotmap = "1.0"
3332
thiserror = { workspace = true }
3433
tokio = "1.1"

core-api/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ derive_builder = { workspace = true }
2121
derive_more = { workspace = true }
2222
opentelemetry = { workspace = true, optional = true }
2323
prost = { workspace = true }
24-
prost-types = { workspace = true }
2524
serde_json = "1.0"
2625
thiserror = { workspace = true }
2726
tonic = { workspace = true }

core/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ enum-iterator = "2"
3535
flate2 = { version = "1.0", optional = true }
3636
futures-util = { version = "0.3", default-features = false }
3737
futures-channel = { version = "0.3", default-features = false, features = ["std"] }
38-
governor = "0.7"
38+
governor = "0.8"
3939
http-body-util = { version = "0.1", optional = true }
4040
hyper = { version = "1.2", optional = true }
4141
hyper-util = { version = "0.1", features = ["server", "http1", "http2", "tokio"], optional = true }
42-
itertools = "0.13"
43-
lru = "0.12"
42+
itertools = "0.14"
43+
lru = "0.13"
4444
mockall = "0.13"
4545
opentelemetry = { workspace = true, features = ["metrics"], optional = true }
4646
opentelemetry_sdk = { version = "0.26", features = ["rt-tokio", "metrics"], optional = true }
@@ -52,14 +52,14 @@ pin-project = "1.0"
5252
prometheus = "0.13"
5353
prost = { workspace = true }
5454
prost-types = { version = "0.6", package = "prost-wkt-types" }
55-
rand = "0.8.3"
55+
rand = "0.9"
5656
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls-native-roots"], default-features = false, optional = true }
5757
ringbuf = "0.4"
5858
serde = "1.0"
5959
serde_json = "1.0"
6060
siphasher = "1.0"
6161
slotmap = "1.0"
62-
sysinfo = { version = "0.32", default-features = false, features = ["system"] }
62+
sysinfo = { version = "0.33", default-features = false, features = ["system"] }
6363
tar = { version = "0.4", optional = true }
6464
thiserror = { workspace = true }
6565
tokio = { version = "1.37", features = ["rt", "rt-multi-thread", "parking_lot", "time", "fs", "process"] }

sdk-core-protos/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ anyhow = "1.0"
1919
base64 = "0.22"
2020
derive_more = { workspace = true }
2121
prost = { workspace = true }
22-
prost-types = { workspace = true }
2322
prost-wkt = "0.6"
2423
prost-wkt-types = "0.6"
25-
rand = { version = "0.8", optional = true }
24+
rand = { version = "0.9", optional = true }
2625
serde = { version = "1.0", features = ["derive"] }
2726
serde_json = "1.0"
2827
thiserror = { workspace = true }

sdk/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ categories = ["development-tools"]
1212

1313
[dependencies]
1414
async-trait = "0.1"
15-
thiserror = { workspace = true }
1615
anyhow = "1.0"
1716
derive_more = { workspace = true }
1817
futures-util = { version = "0.3", default-features = false }

test-utils/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,17 @@ ephemeral-server = ["temporal-sdk-core/ephemeral-server"]
1717
anyhow = "1.0"
1818
assert_matches = "1"
1919
async-trait = "0.1"
20-
base64 = "0.22"
21-
bytes = "1.3"
2220
futures-util = { version = "0.3", default-features = false }
2321
parking_lot = "0.12"
2422
prost = { workspace = true }
25-
prost-types = { workspace = true }
26-
rand = "0.8"
27-
rmp-serde = "1.1"
28-
serde_json = "1.0"
23+
rand = "0.9"
2924
temporal-client = { path = "../client" }
3025
temporal-sdk = { path = "../sdk" }
3126
temporal-sdk-core = { path = "../core" }
3227
temporal-sdk-core-api = { path = "../core-api" }
33-
thiserror = { workspace = true }
3428
tokio = "1.1"
35-
tokio-util = { version = "0.7" }
3629
tracing = "0.1"
3730
url = "2.2"
38-
uuid = "1.1"
3931

4032
[dependencies.temporal-sdk-core-protos]
4133
path = "../sdk-core-protos"

test-utils/src/canned_histories.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ pub fn lots_of_big_signals(num_tasks: usize) -> TestHistoryBuilder {
767767
t.add_by_type(EventType::WorkflowExecutionStarted);
768768
t.add_full_wf_task();
769769

770-
let mut rng = rand::thread_rng();
770+
let mut rng = rand::rng();
771771
for _ in 1..=num_tasks {
772772
let mut dat = [0_u8; 1024 * 1000];
773773
for _ in 1..=5 {

test-utils/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use assert_matches::assert_matches;
1616
use futures_util::{StreamExt, future, stream, stream::FuturesUnordered};
1717
use parking_lot::Mutex;
1818
use prost::Message;
19-
use rand::{Rng, distributions};
19+
use rand::Rng;
2020
use std::{
2121
convert::TryFrom, env, future::Future, net::SocketAddr, path::PathBuf, sync::Arc,
2222
time::Duration,
@@ -874,8 +874,8 @@ pub async fn drain_pollers_and_shutdown(worker: &Arc<dyn CoreWorker>) {
874874
}
875875

876876
pub fn rand_6_chars() -> String {
877-
rand::thread_rng()
878-
.sample_iter(&distributions::Alphanumeric)
877+
rand::rng()
878+
.sample_iter(&rand::distr::Alphanumeric)
879879
.take(6)
880880
.map(char::from)
881881
.collect()

tests/fuzzy_workflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ enum FuzzyWfAction {
2121
struct FuzzyWfActionSampler;
2222
impl Distribution<FuzzyWfAction> for FuzzyWfActionSampler {
2323
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> FuzzyWfAction {
24-
let v: u8 = rng.gen_range(1..=2);
24+
let v: u8 = rng.random_range(1..=2);
2525
match v {
2626
1 => FuzzyWfAction::DoAct,
2727
2 => FuzzyWfAction::DoLocalAct,

0 commit comments

Comments
 (0)