From 2e0002a810509f51f831abcb516092aefc268ed0 Mon Sep 17 00:00:00 2001 From: lew Date: Fri, 10 Apr 2026 15:48:57 +0100 Subject: [PATCH] perf: only include used tokio features rather than full --- Cargo.lock | 42 ------------------------------------------ Cargo.toml | 6 +++--- 2 files changed, 3 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c1e86cb..2f13a71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -895,15 +895,6 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" -[[package]] -name = "lock_api" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" -dependencies = [ - "scopeguard", -] - [[package]] name = "log" version = "0.4.29" @@ -1034,29 +1025,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "parking_lot" -version = "0.12.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-link", -] - [[package]] name = "percent-encoding" version = "2.3.2" @@ -1171,15 +1139,6 @@ dependencies = [ "erasable", ] -[[package]] -name = "redox_syscall" -version = "0.5.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" -dependencies = [ - "bitflags 2.11.0", -] - [[package]] name = "reqwest" version = "0.11.27" @@ -1683,7 +1642,6 @@ dependencies = [ "bytes", "libc", "mio", - "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2 0.6.3", diff --git a/Cargo.toml b/Cargo.toml index adf144d..3e37303 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "guestbook" -version = "0.2.4" +version = "0.2.5" edition = "2021" -description = "A self-hosted guestbook page to let visitors to your site leave behind written messages, drawings, and voice notes, with spam-prevention and moderation via Telegram bot." +description = "A configurable, self-hosted guestbook for the web, allowing visitors to leave behind messages, drawings, and voice notes, with spam-prevention and moderation via Telegram bot." license = "MIT" repository = "https://git.ily.rs/lew/guestbook" [dependencies] axum = "0.8" -tokio = { version = "1", features = ["full"] } +tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "net"] } teloxide = { version = "0.13", features = ["macros"] } serde = { version = "1", features = ["derive"] } toml = "0.8"