Skip to content

Commit 4e96359

Browse files
authored
Update Rust Dependencies 2024-05-29 (#226) (#229)
* Moved deprecated .cargo/config to config.toml * Ignore clippy warning * Updated body_reader and channel dependencies * Updated config-wasm and hdr-histogram dependencies * Updated additional dependencies - Held back hyper, http, and yansi due to major changes * Updated Yansi to latest version - Converted Paint::disable to Yansi::disable - Removed Windows specific code. Yansi now will try to enable on Windows and automatically disables if it can't activate. * Added build test-server to the PR script and workflow * Fix dependency loop with ahash on itself - tkaitchuck/aHash#95 (comment) - rustwasm/wasm-bindgen#3031 (comment) * Updated yaml-rust to use yaml-rust2 due to deprecation - chyh1990/yaml-rust#197 - chyh1990/yaml-rust#160 (comment) * Updated cargo deny to remove deprecated entries - EmbarkStudios/cargo-deny#611 - https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html#the-clarify-field-optional * Updated cargo lock file * Updated code for deprecations - Added tests for create_date_diff, then updated deprecated calls and confirmed tests still passed * Added clippy ignore large results and errors * Fixed tests to validate to UTC - Since the PR flow runs on UTC, updated the local PR script to also run UTC - Updated the create_date_diff test to validate UTC and print a warning to run UTC if it fails
1 parent e464536 commit 4e96359

18 files changed

+563
-1979
lines changed

Cargo.lock

+396-340
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ thiserror.workspace = true
4949
tokio.workspace = true
5050
tokio-stream = { version = "0.1", features = ["sync", "time"] }
5151
url.workspace = true
52-
yansi = "0.5"
52+
yansi = "1"
5353
zip_all.workspace = true
5454
# https://github.com/softprops/json-env-logger/issues/6
5555
log = { workspace = true, features = ["kv_unstable_std"] }
56-
env_logger = "0.10"
56+
env_logger = "0.11"
5757
json_env_logger = { version = "0.1", features = ["iso-timestamps"] }
5858
# https://github.com/sfackler/rust-openssl/issues/1021#issuecomment-605602642
5959
openssl = { version = "0.10", features = ["vendored"] }
@@ -100,14 +100,14 @@ version = "0.6.0"
100100
license = "Apache 2.0"
101101

102102
[workspace.dependencies]
103-
base64 = "0.21"
103+
base64 = "0.22"
104104
config = { path = "./lib/config" }
105105
ether = { path = "./lib/either" }
106106
futures = "0.3"
107107
futures-timer = "3"
108108
http = "0.2"
109109
hyper = "0.14"
110-
itertools = "0.11"
110+
itertools = "0.13"
111111
js-sys = "0.3.64"
112112
log = "0.4"
113113
once_cell = "1.17.1"

.cargo/config config.toml

File renamed without changes.

deny.toml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1+
[graph]
12
targets = [
23
{ triple = "x86_64-unknown-linux-musl" },
34
{ triple = "aarch64-unknown-linux-musl" },
5+
{ triple = "armv7-unknown-linux-musleabihf" },
46
{ triple = "x86_64-pc-windows-msvc" },
57
{ triple = "x86_64-apple-darwin" },
8+
{ triple = "aarch64-apple-darwin" },
69
{ triple = "wasm32-unknown-unknown" },
710
]
811

912
[advisories]
1013
db-path = "~/.cargo/advisory-db"
1114
db-urls = ["https://github.com/rustsec/advisory-db"]
12-
vulnerability = "deny"
13-
unmaintained = "warn"
15+
version = 2
1416
yanked = "warn"
15-
notice = "warn"
1617
ignore = [
1718
# "RUSTSEC-2020-0071",
1819
]
1920

2021
[licenses]
2122
private = { ignore = true }
22-
unlicensed = "deny"
23+
version = 2
2324
allow = [
2425
"Apache-2.0",
2526
"BSD-3-Clause",
@@ -28,8 +29,6 @@ allow = [
2829
"Unicode-DFS-2016",
2930
"Zlib",
3031
]
31-
copyleft = "deny"
32-
default = "deny"
3332
confidence-threshold = 1.0
3433

3534
[bans]

lib/body_reader/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ doctest = false
1010

1111
[dependencies]
1212
bytes = "1"
13-
brotli-decompressor = "2"
13+
brotli-decompressor = "4"
1414
libflate = "2"
1515

1616
[dev-dependencies]
17-
brotli = "3"
17+
brotli = "6"

lib/channel/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doctest = false
1212
ahash = "0.8"
1313
concurrent-queue = "2"
1414
dashmap = "5"
15-
event-listener = "2"
15+
event-listener = "5"
1616
futures.workspace = true
1717
serde = { workspace = true, features = ["derive"] }
1818
serde_json.workspace = true

lib/config-wasm/Cargo.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ crate-type = ["cdylib"]
1212
config = { workspace = true, features = ["legacy"] }
1313
js-sys.workspace = true
1414
serde.workspace = true
15-
serde-wasm-bindgen = "0.5"
16-
wasm-bindgen = { workspace = true, features = ["serde-serialize"] }
15+
serde-wasm-bindgen = "0.6"
16+
# https://github.com/tkaitchuck/aHash/issues/95#issuecomment-1937448134
17+
# https://github.com/rustwasm/wasm-bindgen/pull/3031#issuecomment-1442610289
18+
wasm-bindgen = { workspace = true }
19+
# Not a direct dependency but get random as of 0.2.2 throws an error on "unsupported targets"
20+
# https://docs.rs/getrandom/0.2.2/getrandom/#unsupported-targets
21+
# The fix is to add it as a supported target and specify the target. As of 0.2.2 both browser and nodejs use "js"
1722
getrandom.workspace = true
1823
log.workspace = true
1924
wasm-logger.workspace = true

0 commit comments

Comments
 (0)