Skip to content

Commit 99c70a3

Browse files
committed
chore: update rand, crypto crates
1 parent aea9d70 commit 99c70a3

8 files changed

Lines changed: 38 additions & 28 deletions

File tree

Cargo.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,17 @@ cfg-if = "1.0.0"
194194
dotenvy = { version = "0.15.7", default-features = false }
195195
thiserror = { version = "2.0.17", default-features = false, features = ["std"] }
196196

197+
# Cryptography
198+
crc = { version = "3.0.0" }
199+
digest = { version = "0.11.2", default-features = false, features = ["std"] }
200+
hkdf = { version = "0.13.0" }
201+
hmac = { version = "0.13.0", default-features = false, features = ["reset"]}
202+
md-5 = { version = "0.11.0", default-features = false }
203+
rsa = { version = "0.9" }
204+
rand = { version = "0.10.1", features = ["thread_rng"], default-features = false }
205+
sha1 = { version = "0.11.0", default-features = false }
206+
sha2 = { version = "0.11.0", default-features = false }
207+
197208
# Runtimes
198209
[workspace.dependencies.async-global-executor]
199210
version = "3.1"
@@ -234,8 +245,6 @@ paste = "1.0.6"
234245
serde = { version = "1.0.219", features = ["derive"] }
235246
serde_json = "1.0.142"
236247
url = "2.2.2"
237-
rand = "0.8.5"
238-
rand_xoshiro = "0.6.0"
239248
hex = "0.4.3"
240249
tempfile = "3.10.1"
241250
criterion = { version = "0.5.1", features = ["async_tokio"] }

examples/postgres/axum-social-with-tests/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ edition = "2021"
88
[dependencies]
99
# Primary crates
1010
axum = { version = "0.8", features = ["macros"] }
11-
sqlx = { path = "../../../", features = [ "runtime-tokio", "tls-rustls-ring", "postgres", "time", "uuid" ] }
11+
sqlx = { path = "../../..", features = [ "runtime-tokio", "tls-rustls-ring", "postgres", "time", "uuid" ] }
1212
tokio = { version = "1.25.0", features = ["rt-multi-thread", "macros"] }
1313

1414
# Important secondary crates
15-
argon2 = "0.4.1"
16-
rand = "0.8.5"
15+
argon2 = "0.6.0-rc.8" # FIXME: update to `0.6.0` when released
16+
rand = "0.10.1"
1717
regex = "1.6.0"
1818
serde = "1.0.219"
19-
serde_with = { version = "2.0.0", features = ["time_0_3"] }
19+
serde_with = { version = "3.18.0", features = ["time_0_3"] }
2020
time = "0.3.37"
2121
uuid = { version = "1.12.1", features = ["serde"] }
2222
validator = { version = "0.20.0", features = ["derive"] }

examples/postgres/multi-database/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tracing-subscriber = "0.3.19"
1717

1818
rust_decimal = "1.36.0"
1919

20-
rand = "0.8.5"
20+
rand = "0.10.1"
2121

2222
[dependencies.sqlx]
2323
# version = "0.9.0"

examples/postgres/multi-database/accounts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ sqlx = { workspace = true, features = ["postgres", "time", "uuid", "macros", "sq
88
tokio = { version = "1.25.0", features = ["rt", "sync"] }
99

1010
argon2 = { version = "0.5.3", features = ["password-hash"] }
11-
password-hash = { version = "0.5", features = ["std"] }
11+
password-hash = { version = "0.6.1", features = ["std"] }
1212

1313
uuid = { version = "1.12.1", features = ["serde"] }
1414
thiserror = "1.0.40"
15-
rand = "0.8.5"
15+
rand = "0.10.1"
1616

1717
time = { version = "0.3.37", features = ["serde"] }
1818

examples/postgres/multi-tenant/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tracing-subscriber = "0.3.19"
1717

1818
rust_decimal = "1.36.0"
1919

20-
rand = "0.8.5"
20+
rand = "0.10.1"
2121

2222
[dependencies.sqlx]
2323
# version = "0.9.0"

examples/postgres/multi-tenant/accounts/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ edition = "2021"
66
[dependencies]
77
tokio = { version = "1.25.0", features = ["rt", "sync"] }
88

9-
argon2 = { version = "0.5.3", features = ["password-hash"] }
10-
password-hash = { version = "0.5", features = ["std"] }
9+
# FIXME: update to `0.6.0` when released
10+
argon2 = { version = "0.6.0-rc.8", features = ["password-hash"] }
11+
password-hash = { version = "0.6.1", features = ["std"] }
1112

1213
uuid = { version = "1.12.1", features = ["serde"] }
13-
thiserror = "1.0.40"
14-
rand = "0.8.5"
14+
thiserror = "2.0.18"
15+
rand = "0.10.1"
1516

1617
time = { version = "0.3.37", features = ["serde"] }
1718

sqlx-mysql/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ default = []
1414
json = ["sqlx-core/json", "serde"]
1515
any = ["sqlx-core/any"]
1616
offline = ["sqlx-core/offline", "serde/derive", "bitflags/serde"]
17-
migrate = ["sqlx-core/migrate"]
17+
migrate = ["sqlx-core/migrate", "dep:crc"]
1818
rsa = ["dep:rand", "dep:rsa"]
1919

2020
# Type Integration features
@@ -32,12 +32,12 @@ futures-core = { version = "0.3.32", default-features = false }
3232
futures-util = { version = "0.3.32", default-features = false, features = ["alloc", "sink", "io"] }
3333

3434
# Cryptographic Primitives
35-
crc = "3.0.0"
36-
digest = { version = "0.10.7", default-features = false, features = ["std"] }
37-
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"], optional = true }
38-
rsa = { version = "0.9", optional = true }
39-
sha1 = { version = "0.10.1", default-features = false }
40-
sha2 = { version = "0.10.0", default-features = false }
35+
crc = { workspace = true, optional = true }
36+
digest = { workspace = true }
37+
rand = { workspace = true, optional = true }
38+
rsa = { workspace = true, optional = true }
39+
sha1 = { workspace = true }
40+
sha2 = { workspace = true }
4141

4242
# Type Integrations (versions inherited from `[workspace.dependencies]`)
4343
bigdecimal = { workspace = true, optional = true }

sqlx-postgres/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version.workspace = true
1212
[features]
1313
any = ["sqlx-core/any"]
1414
json = ["dep:serde", "dep:serde_json", "sqlx-core/json"]
15-
migrate = ["sqlx-core/migrate"]
15+
migrate = ["sqlx-core/migrate", "dep:crc"]
1616
offline = ["json", "sqlx-core/offline", "smallvec/serde"]
1717

1818
# Type Integration features
@@ -33,12 +33,12 @@ futures-core = { version = "0.3.32", default-features = false }
3333
futures-util = { version = "0.3.32", default-features = false, features = ["alloc", "sink", "io"] }
3434

3535
# Cryptographic Primitives
36-
crc = "3.0.0"
37-
hkdf = "0.12.0"
38-
hmac = { version = "0.12.0", default-features = false, features = ["reset"]}
39-
md-5 = { version = "0.10.0", default-features = false }
40-
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"] }
41-
sha2 = { version = "0.10.0", default-features = false }
36+
crc = { workspace = true, optional = true }
37+
hkdf = { workspace = true }
38+
hmac = { workspace = true }
39+
md-5 = { workspace = true }
40+
rand = { workspace = true }
41+
sha2 = { workspace = true }
4242

4343
# Type Integrations (versions inherited from `[workspace.dependencies]`)
4444
bigdecimal = { workspace = true, optional = true }

0 commit comments

Comments
 (0)