From 4667a4b4bedeb270fd9036f8d688a8f6134a1948 Mon Sep 17 00:00:00 2001 From: Wez Furlong <wez@wezfurlong.org> Date: Sat, 8 Apr 2023 15:47:34 -0700 Subject: [PATCH] ratelimit: remove indirect dep on quanta refs: https://github.com/wez/wezterm/issues/3472 --- Cargo.lock | 56 +++++----------------------------------------- ratelim/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 52 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e612a1aff51..3961e96ab17 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1248,19 +1248,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "dashmap" -version = "5.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "lock_api", - "once_cell", - "parking_lot_core 0.9.7", -] - [[package]] name = "data-encoding" version = "2.3.3" @@ -1930,7 +1917,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] @@ -2029,18 +2016,16 @@ dependencies = [ [[package]] name = "governor" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19775995ee20209163239355bc3ad2f33f83da35d9ef72dea26e5af753552c87" +checksum = "c390a940a5d157878dd057c78680a33ce3415bcd05b4799509ea44210914b4d5" dependencies = [ - "dashmap", + "cfg-if", "futures", "futures-timer", "no-std-compat", "nonzero_ext", "parking_lot 0.12.1", - "quanta", - "rand", "smallvec", ] @@ -3084,7 +3069,7 @@ checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.45.0", ] @@ -4011,22 +3996,6 @@ dependencies = [ "bytemuck", ] -[[package]] -name = "quanta" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20afe714292d5e879d8b12740aa223c6a88f118af41870e8b6196e39a02238a8" -dependencies = [ - "crossbeam-utils", - "libc", - "mach", - "once_cell", - "raw-cpuid", - "wasi 0.10.2+wasi-snapshot-preview1", - "web-sys", - "winapi", -] - [[package]] name = "quick-xml" version = "0.22.0" @@ -4106,15 +4075,6 @@ dependencies = [ "governor", ] -[[package]] -name = "raw-cpuid" -version = "10.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" -dependencies = [ - "bitflags 1.3.2", -] - [[package]] name = "raw-window-handle" version = "0.5.2" @@ -5702,12 +5662,6 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" diff --git a/ratelim/Cargo.toml b/ratelim/Cargo.toml index 325981486a7..5bf163ccc2b 100644 --- a/ratelim/Cargo.toml +++ b/ratelim/Cargo.toml @@ -7,5 +7,5 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -governor = "0.4" +governor = {version="0.5", default-features=false, features=["std"]} config = { path = "../config" }