Chore: Trim Rust deps and reduce binary bloat

- Switch reqwest workspace dep to rustls-no-provider to drop aws-lc-sys and shrink lqosd

- Remove unused direct deps (mimalloc, allocative_derive, tracing-subscriber, once_cell, libc)

- Align tungstenite/tokio-tungstenite to v0.24 to avoid duplicate versions

- Update quinn-proto to 0.11.14 and refresh Cargo.lock
This commit is contained in:
Herbert Wolverson committed 2026-03-11 13:43:09 -05:00
1 parent d922ed7ba5
commit 8665dba59b
8 files changed
+23 -251

No files matched your search

+17 -241
View File
@@ -205,28 +205,6 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "aws-lc-rs"
version = "1.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b7b6141e96a8c160799cc2d5adecd5cbbe5054cb8c7c4af53da0f83bb7ad256"
dependencies = [
"aws-lc-sys",
"zeroize",
]
[[package]]
name = "aws-lc-sys"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c34dda4df7017c8db52132f0f8a2e0f8161649d15723ed63fc00c82d0f2081a"
dependencies = [
"cc",
"cmake",
"dunce",
"fs_extra",
]
[[package]]
name = "axum"
version = "0.7.9"
@@ -257,7 +235,7 @@ dependencies = [
"sha1",
"sync_wrapper",
"tokio",
"tokio-tungstenite 0.24.0",
"tokio-tungstenite",
"tower",
"tower-layer",
"tower-service",
@@ -420,8 +398,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29"
dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
"shlex",
]
@@ -565,15 +541,6 @@ version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32"
[[package]]
name = "cmake"
version = "0.1.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d"
dependencies = [
"cc",
]
[[package]]
name = "colorchoice"
version = "1.0.4"
@@ -1084,12 +1051,6 @@ dependencies = [
"zeroize",
]
[[package]]
name = "dunce"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "either"
version = "1.15.0"
@@ -1243,12 +1204,6 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "fs_extra"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "fsevent-sys"
version = "4.1.0"
@@ -1346,10 +1301,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"wasi",
"wasm-bindgen",
]
[[package]]
@@ -1359,11 +1312,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"r-efi",
"wasip2",
"wasm-bindgen",
]
[[package]]
@@ -1848,7 +1799,7 @@ dependencies = [
"combine",
"jni-sys",
"log",
"thiserror 1.0.69",
"thiserror",
"walkdir",
"windows-sys 0.45.0",
]
@@ -1859,16 +1810,6 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "jobserver"
version = "0.1.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
dependencies = [
"getrandom 0.3.4",
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.85"
@@ -1938,16 +1879,6 @@ dependencies = [
"windows-link",
]
[[package]]
name = "libmimalloc-sys"
version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "667f4fec20f29dfc6bc7357c582d91796c169ad7e2fce709468aefeb2c099870"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "libredox"
version = "0.1.12"
@@ -1997,13 +1928,11 @@ name = "lqos_bakery"
version = "0.1.0"
dependencies = [
"allocative",
"allocative_derive",
"anyhow",
"crossbeam-channel",
"lqos_bus",
"lqos_config",
"lqos_sys",
"once_cell",
"parking_lot",
"tokio",
"tracing",
@@ -2020,7 +1949,7 @@ dependencies = [
"nix",
"serde",
"serde_cbor",
"thiserror 1.0.69",
"thiserror",
"tokio",
"tracing",
]
@@ -2041,7 +1970,7 @@ dependencies = [
"serde",
"serde_json",
"sha2",
"thiserror 1.0.69",
"thiserror",
"toml",
"toml_edit 0.24.1+spec-1.1.0",
"tracing",
@@ -2122,7 +2051,7 @@ dependencies = [
"parking_lot",
"serde",
"serde_json",
"thiserror 1.0.69",
"thiserror",
"timerfd",
"tracing",
]
@@ -2149,7 +2078,6 @@ name = "lqos_stormguard"
version = "0.1.0"
dependencies = [
"allocative",
"allocative_derive",
"anyhow",
"crossbeam-channel",
"lqos_bakery",
@@ -2163,7 +2091,6 @@ dependencies = [
"surge-ping",
"tokio",
"tracing",
"tracing-subscriber",
]
[[package]]
@@ -2181,7 +2108,7 @@ dependencies = [
"nix",
"once_cell",
"parking_lot",
"thiserror 1.0.69",
"thiserror",
"tracing",
"zerocopy",
]
@@ -2200,7 +2127,7 @@ dependencies = [
"serde",
"serde_json",
"smallvec",
"thiserror 1.0.69",
"thiserror",
"tracing",
"zerocopy",
]
@@ -2236,7 +2163,6 @@ dependencies = [
"lqos_stormguard",
"lqos_sys",
"lqos_utils",
"mimalloc",
"miniz_oxide",
"native-tls",
"nix",
@@ -2253,14 +2179,14 @@ dependencies = [
"strum",
"surge-ping",
"sysinfo",
"thiserror 1.0.69",
"thiserror",
"timerfd",
"tokio",
"tokio-tungstenite 0.28.0",
"tokio-tungstenite",
"tower-http",
"tracing",
"tracing-subscriber",
"tungstenite 0.28.0",
"tungstenite",
"ureq",
"uuid",
"zerocopy",
@@ -2299,12 +2225,6 @@ dependencies = [
"hashbrown 0.15.5",
]
[[package]]
name = "lru-slab"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
[[package]]
name = "matchers"
version = "0.2.0"
@@ -2341,15 +2261,6 @@ dependencies = [
"autocfg",
]
[[package]]
name = "mimalloc"
version = "0.1.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1ee66a4b64c74f4ef288bcbb9192ad9c3feaad75193129ac8509af543894fd8"
dependencies = [
"libmimalloc-sys",
]
[[package]]
name = "mime"
version = "0.3.17"
@@ -2474,7 +2385,7 @@ dependencies = [
"anyhow",
"byteorder",
"paste",
"thiserror 1.0.69",
"thiserror",
]
[[package]]
@@ -3006,62 +2917,6 @@ dependencies = [
"syn 2.0.114",
]
[[package]]
name = "quinn"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"
dependencies = [
"bytes",
"cfg_aliases",
"pin-project-lite",
"quinn-proto",
"quinn-udp",
"rustc-hash",
"rustls",
"socket2",
"thiserror 2.0.18",
"tokio",
"tracing",
"web-time",
]
[[package]]
name = "quinn-proto"
version = "0.11.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31"
dependencies = [
"aws-lc-rs",
"bytes",
"getrandom 0.3.4",
"lru-slab",
"rand 0.9.2",
"ring",
"rustc-hash",
"rustls",
"rustls-pki-types",
"slab",
"thiserror 2.0.18",
"tinyvec",
"tracing",
"web-time",
]
[[package]]
name = "quinn-udp"
version = "0.5.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"
dependencies = [
"cfg_aliases",
"libc",
"once_cell",
"socket2",
"tracing",
"windows-sys 0.60.2",
]
[[package]]
name = "quote"
version = "1.0.44"
@@ -3247,7 +3102,6 @@ dependencies = [
"mime",
"percent-encoding",
"pin-project-lite",
"quinn",
"rustls",
"rustls-pki-types",
"rustls-platform-verifier",
@@ -3326,7 +3180,6 @@ version = "0.23.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b"
dependencies = [
"aws-lc-rs",
"log",
"once_cell",
"ring",
@@ -3354,7 +3207,6 @@ version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"
dependencies = [
"web-time",
"zeroize",
]
@@ -3391,7 +3243,6 @@ version = "0.103.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53"
dependencies = [
"aws-lc-rs",
"ring",
"rustls-pki-types",
"untrusted",
@@ -3761,7 +3612,7 @@ dependencies = [
"pnet_packet",
"rand 0.9.2",
"socket2",
"thiserror 1.0.69",
"thiserror",
"tokio",
"tracing",
]
@@ -3889,16 +3740,7 @@ version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [
"thiserror-impl 1.0.69",
]
[[package]]
name = "thiserror"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
dependencies = [
"thiserror-impl 2.0.18",
"thiserror-impl",
]
[[package]]
@@ -3912,17 +3754,6 @@ dependencies = [
"syn 2.0.114",
]
[[package]]
name = "thiserror-impl"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.114",
]
[[package]]
name = "thread_local"
version = "1.1.9"
@@ -3994,21 +3825,6 @@ dependencies = [
"serde_json",
]
[[package]]
name = "tinyvec"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.49.0"
@@ -4062,25 +3878,13 @@ name = "tokio-tungstenite"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite 0.24.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"
dependencies = [
"futures-util",
"log",
"native-tls",
"tokio",
"tokio-native-tls",
"tungstenite 0.28.0",
"tungstenite",
]
[[package]]
@@ -4312,27 +4116,10 @@ dependencies = [
"http",
"httparse",
"log",
"native-tls",
"rand 0.8.5",
"sha1",
"thiserror 1.0.69",
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442"
dependencies = [
"bytes",
"data-encoding",
"http",
"httparse",
"log",
"native-tls",
"rand 0.9.2",
"sha1",
"thiserror 2.0.18",
"thiserror",
"utf-8",
]
@@ -4347,7 +4134,6 @@ name = "uisp"
version = "0.1.0"
dependencies = [
"allocative",
"allocative_derive",
"anyhow",
"lqos_config",
"reqwest",
@@ -4370,7 +4156,7 @@ dependencies = [
"serde",
"serde_cbor",
"serde_json",
"thiserror 1.0.69",
"thiserror",
"tokio",
"tracing",
"tracing-subscriber",
@@ -4666,16 +4452,6 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "web-time"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "webpki-root-certs"
version = "1.0.6"
+1 -1
View File
@@ -60,7 +60,7 @@ toml = "0.8.8"
zerocopy = {version = "0.8.5", features = [ "derive", "zerocopy-derive", "simd" ] }
sysinfo = { version = "0", default-features = false, features = [ "system" ] }
default-net = "0"
reqwest = { version = "0", features = ["json", "blocking"] }
reqwest = { version = "0.13", default-features = false, features = ["blocking", "json", "rustls-no-provider", "charset", "http2", "system-proxy"] }
pyo3 = "0.25.1"
colored = "2"
miniz_oxide = "0.8"
-2
View File
@@ -10,8 +10,6 @@ lqos_sys = { path = "../lqos_sys" }
anyhow.workspace = true
tracing.workspace = true
crossbeam-channel.workspace = true
once_cell.workspace = true
allocative.workspace = true
allocative_derive.workspace = true
parking_lot.workspace = true
tokio.workspace = true
-2
View File
@@ -5,7 +5,6 @@ edition = "2024"
[dependencies]
tracing.workspace = true
tracing-subscriber.workspace = true
anyhow.workspace = true
lqos_config = { path = "../lqos_config" }
lqos_bus = { path = "../lqos_bus" }
@@ -21,4 +20,3 @@ rand = "0.8.5"
# For memory debugging
allocative.workspace = true
allocative_derive.workspace = true
-1
View File
@@ -11,6 +11,5 @@ lqos_config = { path = "../lqos_config" }
serde = { workspace = true }
serde_cbor = { workspace = true }
miniz_oxide = { workspace = true }
libc = "0.2.155"
nix = { workspace = true }
serde_json = { workspace = true }
+3
View File
@@ -23,3 +23,6 @@ allocative_derive.workspace = true
[build-dependencies]
bindgen = "0.71.1"
[package.metadata.cargo-machete]
ignored = ["allocative"]
+2 -3
View File
@@ -54,8 +54,8 @@ uuid = { version = "1.10.0", features = ["v4", "fast-rng", "serde"] }
dryoc = { version ="0.6.0", features = ["serde"] }
miniz_oxide = "0.8.0"
thiserror = { workspace = true }
tungstenite = { version = "0", features = [ "native-tls" ] } # For WebSockets
tokio-tungstenite = { version = "0", features = [ "native-tls" ] }
tungstenite = { version = "0.24", features = [ "native-tls" ] } # For WebSockets
tokio-tungstenite = { version = "0.24", features = [ "native-tls" ] }
native-tls = "0.2"
ureq = { version = "2.12.1", features = ["json", "native-tls"] }
csv = { workspace = true }
@@ -69,5 +69,4 @@ allocative_derive.workspace = true
# Support JemAlloc on supported platforms
#[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
#jemallocator = { workspace = true }
mimalloc = { workspace = true }
futures-util = "0.3.31"
-1
View File
@@ -11,4 +11,3 @@ reqwest = { workspace = true }
anyhow = { workspace = true }
# For memory debugging
allocative.workspace = true
allocative_derive.workspace = true