From 7cfd73cd9526c6ddc4bf54628b87bb86630c45a7 Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Wed, 25 Dec 2024 00:13:29 +0000 Subject: [PATCH] Fix. Removing tokio from the project as serenity already has async functionality --- Cargo.lock | 12 ------------ Cargo.toml | 1 - src/main.rs | 3 +-- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index da8b88d..4eb8473 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -222,7 +222,6 @@ version = "0.1.0" dependencies = [ "dotenv", "serenity", - "tokio", ] [[package]] @@ -1365,15 +1364,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "signal-hook-registry" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" -dependencies = [ - "libc", -] - [[package]] name = "skeptic" version = "0.13.7" @@ -1588,9 +1578,7 @@ dependencies = [ "bytes", "libc", "mio", - "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.52.0", diff --git a/Cargo.toml b/Cargo.toml index 45e4a89..d121ea4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,3 @@ edition = "2021" [dependencies] dotenv = "0.15.0" serenity = "0.12.4" -tokio = { version = "1.42.0", features = ["full"] } diff --git a/src/main.rs b/src/main.rs index c906f16..04884c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ use dotenv::dotenv; -#[tokio::main] -async fn main() { +fn main() { dotenv().ok(); let token = std::env::var("TOKEN").expect("TOKEN must be set"); }