From 27e68e4b0d6b6bf3d05166e6d6a68d56ff5a0704 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 13 Nov 2020 15:20:09 +0100 Subject: update dependencies This is a bit bigger than usual, because it brings the serenity update from 0.8.x to 0.9 with a lot of API changes. The biggest offender is the new async environment, which means that we need to sprinkle some .awaits here and there, as well as use tokio to spawn a runtime. Serenity currently uses tokio 0.2, so we need to stick to the older version until serenity updates, otherwise we'll get a runtime mismatch. Another small change comes from serenity switching to typemap_rev[1] instead of their old implementation, which is currently still missing some methods. Until those are implemented[2], we're patching the dependency directly. The good news is that all of the changes are pretty much contained to src/discord.rs only, as the other parts of ezau could stay untouched. [1]: https://github.com/bdashore3/typemap_rev [2]: https://github.com/bdashore3/typemap_rev/pull/1 --- Cargo.toml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 9356949..882cf42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,29 @@ clap = "3.0.0-beta.1" log = "0.4.8" pretty_env_logger = "0.4.0" anyhow = "1.0.31" -serenity = "0.8.6" evtclib = "0.5.0" -reqwest = { version = "0.10.6", features = ["json"] } +reqwest = { version = "0.10.6", features = ["json", "blocking"] } serde = "1.0.111" chrono = "0.4.11" notify = "4.0.15" regex = "1.3.9" zip = "0.5.5" toml = "0.5.6" +tokio = { version = "0.2", features = ["rt-core"] } + +[dependencies.serenity] +default-features = false +features = [ + "builder", + "cache", + "client", + "gateway", + "http", + "model", + "utils", + "rustls_backend", +] +version = "0.9" + +[patch.crates-io] +typemap_rev = { git = "https://github.com/Kingdread/typemap_rev.git", branch = "extra-methods" } -- cgit v1.2.3