From 1f9b2534339993bd12c63bfdcd5c86dc8540e799 Mon Sep 17 00:00:00 2001 From: Skipper Date: Sun, 19 Apr 2026 13:44:09 +0200 Subject: [PATCH] housekeeping(server): removed unused deps --- server/Cargo.lock | 205 ------------------ server/Cargo.toml | 3 - server/crates/arbiter-client/Cargo.toml | 4 +- server/crates/arbiter-crypto/Cargo.toml | 3 + server/crates/arbiter-macros/Cargo.toml | 1 + server/crates/arbiter-proto/Cargo.toml | 9 +- server/crates/arbiter-server/Cargo.toml | 15 +- .../crates/arbiter-tokens-registry/Cargo.toml | 4 + 8 files changed, 19 insertions(+), 225 deletions(-) diff --git a/server/Cargo.lock b/server/Cargo.lock index 836a999..a85e1a3 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -689,7 +689,6 @@ dependencies = [ "async-trait", "chrono", "http", - "rand 0.10.1", "rustls-webpki", "thiserror 2.0.18", "tokio", @@ -728,13 +727,10 @@ dependencies = [ "async-trait", "base64", "futures", - "hex", "kameo", "miette", "prost", "prost-types", - "protoc-bin-vendored", - "rand 0.10.1", "rcgen", "rstest", "rustls-pki-types", @@ -744,7 +740,6 @@ dependencies = [ "tonic", "tonic-prost", "tonic-prost-build", - "tracing", "url", ] @@ -762,15 +757,10 @@ dependencies = [ "async-trait", "chacha20poly1305", "chrono", - "dashmap", "diesel", "diesel-async", "diesel_migrations", - "ed25519-dalek", - "fatality", - "futures", "hmac 0.13.0", - "insta", "k256", "kameo", "kameo_actors", @@ -778,18 +768,14 @@ dependencies = [ "mutants", "pem", "proptest", - "prost", "prost-types", "rand 0.10.1", "rcgen", "restructed", "rstest", "rustls", - "secrecy", - "serde_with", "sha2 0.11.0", "smlang", - "spki 0.8.0", "strum 0.28.0", "subtle", "test-log", @@ -800,7 +786,6 @@ dependencies = [ "tracing", "tracing-subscriber", "x25519-dalek 2.0.1", - "zeroize", ] [[package]] @@ -1502,17 +1487,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "console" -version = "0.16.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d64e8af5551369d19cf50138de61f1c42074ab970f74e99be916646777f8fc87" -dependencies = [ - "encode_unicode", - "libc", - "windows-sys 0.61.2", -] - [[package]] name = "const-hex" version = "1.18.1" @@ -1703,7 +1677,6 @@ dependencies = [ "cfg-if", "cpufeatures 0.2.17", "curve25519-dalek-derive", - "digest 0.11.2", "fiat-crypto 0.3.0", "rustc_version 0.4.1", "subtle", @@ -2045,29 +2018,6 @@ dependencies = [ "spki 0.7.3", ] -[[package]] -name = "ed25519" -version = "3.0.0-rc.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6e914c7c52decb085cea910552e24c63ac019e3ab8bf001ff736da9a9d9d890" -dependencies = [ - "signature 3.0.0-rc.10", -] - -[[package]] -name = "ed25519-dalek" -version = "3.0.0-pre.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053618a4c3d3bc24f188aa660ae75a46eeab74ef07fb415c61431e5e7cd4749b" -dependencies = [ - "curve25519-dalek 5.0.0-pre.6", - "ed25519", - "rand_core 0.10.1", - "sha2 0.11.0", - "subtle", - "zeroize", -] - [[package]] name = "educe" version = "0.6.0" @@ -2109,12 +2059,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "encode_unicode" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" - [[package]] name = "enum-ordinalize" version = "4.3.2" @@ -2151,21 +2095,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "expander" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2c470c71d91ecbd179935b24170459e926382eaaa86b590b78814e180d8a8e2" -dependencies = [ - "blake2", - "file-guard", - "fs-err", - "prettyplease", - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "fastrand" version = "2.4.1" @@ -2194,30 +2123,6 @@ dependencies = [ "bytes", ] -[[package]] -name = "fatality" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec6f82451ff7f0568c6181287189126d492b5654e30a788add08027b6363d019" -dependencies = [ - "fatality-proc-macro", - "thiserror 1.0.69", -] - -[[package]] -name = "fatality-proc-macro" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb42427514b063d97ce21d5199f36c0c307d981434a6be32582bc79fe5bd2303" -dependencies = [ - "expander", - "indexmap 2.14.0", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "ff" version = "0.13.1" @@ -2240,16 +2145,6 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" -[[package]] -name = "file-guard" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21ef72acf95ec3d7dbf61275be556299490a245f017cf084bd23b4f68cf9407c" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "find-msvc-tools" version = "0.1.9" @@ -2311,15 +2206,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fs-err" -version = "2.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" -dependencies = [ - "autocfg", -] - [[package]] name = "fs_extra" version = "1.3.0" @@ -2931,18 +2817,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "insta" -version = "1.47.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4a6248eb93a4401ed2f37dfe8ea592d3cf05b7cf4f8efa867b6895af7e094e" -dependencies = [ - "console", - "once_cell", - "similar", - "tempfile", -] - [[package]] name = "ipnet" version = "2.12.0" @@ -3932,70 +3806,6 @@ dependencies = [ "prost", ] -[[package]] -name = "protoc-bin-vendored" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1c381df33c98266b5f08186583660090a4ffa0889e76c7e9a5e175f645a67fa" -dependencies = [ - "protoc-bin-vendored-linux-aarch_64", - "protoc-bin-vendored-linux-ppcle_64", - "protoc-bin-vendored-linux-s390_64", - "protoc-bin-vendored-linux-x86_32", - "protoc-bin-vendored-linux-x86_64", - "protoc-bin-vendored-macos-aarch_64", - "protoc-bin-vendored-macos-x86_64", - "protoc-bin-vendored-win32", -] - -[[package]] -name = "protoc-bin-vendored-linux-aarch_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c350df4d49b5b9e3ca79f7e646fde2377b199e13cfa87320308397e1f37e1a4c" - -[[package]] -name = "protoc-bin-vendored-linux-ppcle_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55a63e6c7244f19b5c6393f025017eb5d793fd5467823a099740a7a4222440c" - -[[package]] -name = "protoc-bin-vendored-linux-s390_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dba5565db4288e935d5330a07c264a4ee8e4a5b4a4e6f4e83fad824cc32f3b0" - -[[package]] -name = "protoc-bin-vendored-linux-x86_32" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8854774b24ee28b7868cd71dccaae8e02a2365e67a4a87a6cd11ee6cdbdf9cf5" - -[[package]] -name = "protoc-bin-vendored-linux-x86_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b38b07546580df720fa464ce124c4b03630a6fb83e05c336fea2a241df7e5d78" - -[[package]] -name = "protoc-bin-vendored-macos-aarch_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89278a9926ce312e51f1d999fee8825d324d603213344a9a706daa009f1d8092" - -[[package]] -name = "protoc-bin-vendored-macos-x86_64" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81745feda7ccfb9471d7a4de888f0652e806d5795b61480605d4943176299756" - -[[package]] -name = "protoc-bin-vendored-win32" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95067976aca6421a523e491fce939a3e65249bac4b977adee0ee9771568e8aa3" - [[package]] name = "pulldown-cmark" version = "0.13.3" @@ -4682,15 +4492,6 @@ dependencies = [ "cc", ] -[[package]] -name = "secrecy" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a" -dependencies = [ - "zeroize", -] - [[package]] name = "security-framework" version = "3.7.0" @@ -4934,12 +4735,6 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" -[[package]] -name = "similar" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" - [[package]] name = "slab" version = "0.4.12" diff --git a/server/Cargo.toml b/server/Cargo.toml index 173cd73..fa9bf28 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -10,7 +10,6 @@ alloy = "2.0.0" async-trait = "0.1.89" base64 = "0.22.1" chrono = { version = "0.4.44", features = ["serde"] } -ed25519-dalek = { version = "3.0.0-pre.6", features = ["rand_core"] } futures = "0.3.32" k256 = { version = "0.13.4", features = ["ecdsa", "pkcs8"] } kameo = {git = "https://github.com/hdbg/kameo.git", rev = "805b417"} @@ -23,13 +22,11 @@ prost = "0.14.3" prost-types = { version = "0.14.3", features = ["chrono"] } rand = "0.10.1" rcgen = { version = "0.14.7", features = [ "aws_lc_rs", "pem", "x509-parser", "zeroize" ], default-features = false } -rsa = { version = "0.9", features = ["sha2"] } rstest = "0.26.1" rustls = { version = "0.23.38", features = ["aws-lc-rs", "logging", "prefer-post-quantum", "std"], default-features = false } rustls-pki-types = "1.14.0" sha2 = "0.11" smlang = "0.8.0" -spki = "0.8" thiserror = "2.0.18" tokio = { version = "1.52.1", features = ["full"] } tokio-stream = { version = "0.1.18", features = ["full"] } diff --git a/server/crates/arbiter-client/Cargo.toml b/server/crates/arbiter-client/Cargo.toml index 828501e..c85b49a 100644 --- a/server/crates/arbiter-client/Cargo.toml +++ b/server/crates/arbiter-client/Cargo.toml @@ -23,5 +23,7 @@ thiserror.workspace = true http = "1.4.0" rustls-webpki = { version = "0.103.12", features = ["aws-lc-rs"] } async-trait.workspace = true -rand.workspace = true chrono.workspace = true + +[lib] +doctest = false diff --git a/server/crates/arbiter-crypto/Cargo.toml b/server/crates/arbiter-crypto/Cargo.toml index b544b33..3cbe8ec 100644 --- a/server/crates/arbiter-crypto/Cargo.toml +++ b/server/crates/arbiter-crypto/Cargo.toml @@ -20,3 +20,6 @@ workspace = true default = ["authn", "safecell"] authn = ["dep:ml-dsa", "dep:rand"] safecell = ["dep:memsafe"] + +[lib] +doctest = false diff --git a/server/crates/arbiter-macros/Cargo.toml b/server/crates/arbiter-macros/Cargo.toml index 210652b..15a5070 100644 --- a/server/crates/arbiter-macros/Cargo.toml +++ b/server/crates/arbiter-macros/Cargo.toml @@ -5,6 +5,7 @@ edition = "2024" [lib] proc-macro = true +doctest = false [dependencies] proc-macro2 = "1.0" diff --git a/server/crates/arbiter-proto/Cargo.toml b/server/crates/arbiter-proto/Cargo.toml index 56cc61a..b8667be 100644 --- a/server/crates/arbiter-proto/Cargo.toml +++ b/server/crates/arbiter-proto/Cargo.toml @@ -9,7 +9,6 @@ license = "Apache-2.0" tonic.workspace = true tokio.workspace = true futures.workspace = true -hex = "0.4.3" tonic-prost = "0.14.5" prost.workspace = true kameo.workspace = true @@ -19,18 +18,18 @@ thiserror.workspace = true rustls-pki-types.workspace = true base64.workspace = true prost-types.workspace = true -tracing.workspace = true async-trait.workspace = true tokio-stream.workspace = true [build-dependencies] tonic-prost-build = "0.14.5" -protoc-bin-vendored = "3" [dev-dependencies] rstest.workspace = true -rand.workspace = true rcgen.workspace = true +[lib] +doctest = false + [package.metadata.cargo-shear] -ignored = ["tonic-prost", "prost", "kameo"] +ignored = ["tonic-prost", "prost"] diff --git a/server/crates/arbiter-server/Cargo.toml b/server/crates/arbiter-server/Cargo.toml index 0626f2e..d3cdf02 100644 --- a/server/crates/arbiter-server/Cargo.toml +++ b/server/crates/arbiter-server/Cargo.toml @@ -27,17 +27,12 @@ tokio.workspace = true rustls.workspace = true smlang.workspace = true thiserror.workspace = true -fatality = "0.1.1" diesel_migrations = { version = "2.3.1", features = ["sqlite"] } async-trait.workspace = true -secrecy = "0.10.3" -futures.workspace = true tokio-stream.workspace = true -dashmap = "6.1.0" rand.workspace = true rcgen.workspace = true chrono.workspace = true -zeroize = { version = "1.8.2", features = ["std", "simd"] } kameo.workspace = true chacha20poly1305 = { version = "0.10.1", features = ["std"] } argon2 = { version = "0.5.3", features = ["zeroize"] } @@ -46,23 +41,21 @@ strum = { version = "0.28.0", features = ["derive"] } pem = "3.0.6" sha2.workspace = true hmac.workspace = true -spki.workspace = true alloy.workspace = true prost-types.workspace = true -prost.workspace = true arbiter-tokens-registry.path = "../arbiter-tokens-registry" anyhow = "1.0.102" -serde_with = "3.18.0" mutants.workspace = true subtle = "2.6.1" -ml-dsa.workspace = true -ed25519-dalek.workspace = true x25519-dalek.workspace = true k256.workspace = true kameo_actors.workspace = true [dev-dependencies] -insta = "1.47.2" proptest = "1.11.0" rstest.workspace = true test-log = { version = "0.2", default-features = false, features = ["trace"] } +ml-dsa.workspace = true + +[lib] +doctest = false diff --git a/server/crates/arbiter-tokens-registry/Cargo.toml b/server/crates/arbiter-tokens-registry/Cargo.toml index d403554..663df13 100644 --- a/server/crates/arbiter-tokens-registry/Cargo.toml +++ b/server/crates/arbiter-tokens-registry/Cargo.toml @@ -5,3 +5,7 @@ edition = "2024" [dependencies] alloy.workspace = true + +[lib] +test = false +doctest = false