From 1a50ac194851ca3b1fd5811628ace82565de5bb1 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 12 Jun 2022 20:28:51 -0400 Subject: Update serenity version --- Cargo.lock | 211 +++++++++++++++++++++++++++++++++++++----- Cargo.toml | 6 +- src/commands/pony.rs | 8 +- src/commands/reactionroles.rs | 2 +- 4 files changed, 196 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 15c782d..f8293e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,9 +59,9 @@ dependencies = [ [[package]] name = "async-tungstenite" -version = "0.16.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5682ea0913e5c20780fe5785abacb85a411e7437bf52a1bedb93ddb3972cb8dd" +checksum = "a1b71b31561643aa8e7df3effe284fa83ab1a840e52294c5f4bd7bfd8b2becbb" dependencies = [ "futures-io", "futures-util", @@ -124,6 +124,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" +dependencies = [ + "generic-array", +] + [[package]] name = "bumpalo" version = "3.9.1" @@ -164,7 +173,7 @@ dependencies = [ "num-integer", "num-traits", "serde", - "time", + "time 0.1.43", "winapi", ] @@ -274,6 +283,16 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "crypto-common" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" +dependencies = [ + "generic-array", + "typenum", +] + [[package]] name = "crypto-mac" version = "0.11.1" @@ -321,15 +340,27 @@ dependencies = [ [[package]] name = "dashmap" -version = "4.0.2" +version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" +checksum = "4c8858831f7781322e539ea39e72449c46b059638250c14344fec8d0aa6e539c" dependencies = [ "cfg-if", "num_cpus", + "parking_lot 0.12.1", "serde", ] +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "digest" version = "0.9.0" @@ -339,6 +370,16 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" +dependencies = [ + "block-buffer 0.10.2", + "crypto-common", +] + [[package]] name = "dirs" version = "4.0.0" @@ -495,7 +536,7 @@ checksum = "62007592ac46aa7c2b6416f7deb9a8a8f63a01e0f1d6e1787d5630170db2b63e" dependencies = [ "futures-core", "lock_api", - "parking_lot", + "parking_lot 0.11.2", ] [[package]] @@ -663,7 +704,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" dependencies = [ "crypto-mac", - "digest", + "digest 0.9.0", ] [[package]] @@ -873,8 +914,8 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5a279bb9607f9f53c22d496eade00d138d1bdcccd07d74650387cf94942a15" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "opaque-debug", ] @@ -1014,6 +1055,15 @@ dependencies = [ "libc", ] +[[package]] +name = "num_threads" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" +dependencies = [ + "libc", +] + [[package]] name = "object" version = "0.28.3" @@ -1068,6 +1118,15 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "ordered-float" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" +dependencies = [ + "num-traits", +] + [[package]] name = "owo-colors" version = "3.4.0" @@ -1082,7 +1141,17 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", "lock_api", - "parking_lot_core", + "parking_lot_core 0.8.5", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core 0.9.3", ] [[package]] @@ -1099,6 +1168,19 @@ dependencies = [ "winapi", ] +[[package]] +name = "parking_lot_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-sys", +] + [[package]] name = "percent-encoding" version = "2.1.0" @@ -1126,11 +1208,13 @@ checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe" [[package]] name = "poise" version = "0.1.0" -source = "git+https://github.com/kangalioo/poise?branch=master#a28b0193ab032aaedb6b383d1be0d717f9dcf775" +source = "git+https://github.com/kangalioo/poise?branch=master#34d5863d292bb220d0b24fdd5a12eb79081c268a" dependencies = [ "async-trait", + "derivative", "futures-core", "futures-util", + "log", "once_cell", "poise_macros", "regex", @@ -1141,7 +1225,7 @@ dependencies = [ [[package]] name = "poise_macros" version = "0.1.0" -source = "git+https://github.com/kangalioo/poise?branch=master#a28b0193ab032aaedb6b383d1be0d717f9dcf775" +source = "git+https://github.com/kangalioo/poise?branch=master#34d5863d292bb220d0b24fdd5a12eb79081c268a" dependencies = [ "darling", "proc-macro2", @@ -1429,6 +1513,16 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "serde-value" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" +dependencies = [ + "ordered-float", + "serde", +] + [[package]] name = "serde_derive" version = "1.0.136" @@ -1466,25 +1560,28 @@ dependencies = [ [[package]] name = "serenity" -version = "0.10.10" -source = "git+https://github.com/serenity-rs/serenity?branch=next#9e3b92cd3f95fbb50f96ac3af36dc7fe947fc833" +version = "0.11.2" +source = "git+https://github.com/serenity-rs/serenity?rev=b89d09636fe6667e7b9349fa88c76a96da95d471#b89d09636fe6667e7b9349fa88c76a96da95d471" dependencies = [ "async-trait", "async-tungstenite", "base64", "bitflags", "bytes", + "cfg-if", "chrono", "dashmap", "flate2", "futures", "mime", "mime_guess", - "parking_lot", + "parking_lot 0.12.1", "percent-encoding", "reqwest", "serde", + "serde-value", "serde_json", + "time 0.3.9", "tokio", "tracing", "typemap_rev", @@ -1497,23 +1594,34 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] +[[package]] +name = "sha-1" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.3", +] + [[package]] name = "sha2" version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] @@ -1617,13 +1725,13 @@ dependencies = [ "md-5", "memchr", "once_cell", - "parking_lot", + "parking_lot 0.11.2", "percent-encoding", "rand", "rustls 0.19.1", "serde", "serde_json", - "sha-1", + "sha-1 0.9.8", "sha2", "smallvec", "sqlformat", @@ -1757,6 +1865,18 @@ dependencies = [ "winapi", ] +[[package]] +name = "time" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2702e08a7a860f005826c6815dcac101b19b5eb330c27fe4a5928fec1d20ddd" +dependencies = [ + "itoa", + "libc", + "num_threads", + "serde", +] + [[package]] name = "tinyvec" version = "1.5.1" @@ -1970,9 +2090,9 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "tungstenite" -version = "0.16.0" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ad3713a14ae247f22a728a0456a545df14acf3867f905adff84be99e23b3ad1" +checksum = "d96a2dea40e7570482f28eb57afbe42d97551905da6a9400acc5c328d24004f5" dependencies = [ "base64", "byteorder", @@ -1982,7 +2102,7 @@ dependencies = [ "log", "rand", "rustls 0.20.3", - "sha-1", + "sha-1 0.10.0", "thiserror", "url", "utf-8", @@ -2254,6 +2374,49 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-sys" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +dependencies = [ + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" + +[[package]] +name = "windows_i686_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" + +[[package]] +name = "windows_i686_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" + [[package]] name = "winreg" version = "0.7.0" diff --git a/Cargo.toml b/Cargo.toml index a21e76d..03b0180 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,8 @@ futures = "0.3" [dependencies.serenity] git = "https://github.com/serenity-rs/serenity" -branch = "next" +#branch = "next" +rev = "b89d09636fe6667e7b9349fa88c76a96da95d471" default-features = false features = [ "rustls_backend", @@ -39,7 +40,8 @@ features = [ ] [patch.crates-io.serenity] git = "https://github.com/serenity-rs/serenity" -branch = "next" +#branch = "next" +rev = "b89d09636fe6667e7b9349fa88c76a96da95d471" [dependencies.poise] git = "https://github.com/kangalioo/poise" diff --git a/src/commands/pony.rs b/src/commands/pony.rs index 532937a..cf18cc9 100644 --- a/src/commands/pony.rs +++ b/src/commands/pony.rs @@ -50,7 +50,7 @@ pub async fn randpony(ctx: Context<'_>) -> Result<(), Error> { .json::() .await?; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); @@ -104,7 +104,7 @@ pub async fn tpony( .json::() .await?; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); @@ -150,14 +150,14 @@ pub async fn ponybyid( { Ok(r) => r.json::().await?, Err(_) => { - response_msg.unwrap().message().await.unwrap().edit(ctx.discord(), |m| { + response_msg.message().await.unwrap().edit(ctx.discord(), |m| { m.content("There was an error fetching that pony, please double-check your ID and try again.") }).await?; return Ok(()); } }; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); diff --git a/src/commands/reactionroles.rs b/src/commands/reactionroles.rs index 65de61a..ceb7154 100644 --- a/src/commands/reactionroles.rs +++ b/src/commands/reactionroles.rs @@ -73,7 +73,7 @@ pub async fn init( e }); m - }).await?.unwrap().message().await?; + }).await?.message().await?; if let Some(title) = ctx .author() -- cgit v1.2.3