From fcb55609e2c0d600ad7c08602a90e21310543f53 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 4 Jan 2022 20:32:40 +0100 Subject: [PATCH] Only import what serenity need --- Cargo.lock | 26 -------------------------- Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b6974b5..f382746 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,17 +118,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "command_attr" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a6c3666f685cb1efc0628b8c984dbad9c372d080450736c7732089c385ed81d" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "core-foundation" version = "0.9.2" @@ -1156,19 +1145,16 @@ dependencies = [ "bitflags", "bytes 1.1.0", "chrono", - "command_attr", "flate2", "futures", "percent-encoding", "reqwest", "serde", "serde_json", - "static_assertions", "tokio", "tracing", "typemap_rev", "url", - "uwl", ] [[package]] @@ -1221,12 +1207,6 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - [[package]] name = "syn" version = "1.0.84" @@ -1504,12 +1484,6 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" -[[package]] -name = "uwl" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4bf03e0ca70d626ecc4ba6b0763b934b6f2976e8c744088bb3c1d646fbb1ad0" - [[package]] name = "vcpkg" version = "0.2.15" diff --git a/Cargo.toml b/Cargo.toml index 15a1621..ea51671 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,4 +23,4 @@ chrono = "0.4.19" serde_json = "1.0.74" # Discord -serenity = "0.10" +serenity = { version = "0.10", default-features = false, features = ["client", "gateway", "rustls_backend", "model"] }