diff --git a/Cargo.lock b/Cargo.lock index 3bbfbfa..72ca18d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,8 +166,9 @@ dependencies = [ [[package]] name = "command_attr" -version = "0.2.0" -source = "git+https://github.com/acdenisSK/serenity?rev=8c8a172e7f19ed792440547c7ef99d15aadb3938#8c8a172e7f19ed792440547c7ef99d15aadb3938" +version = "0.3.0-rc.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "093ee06b40fcba41b22ddf85de7ed33728fe2e246fcdbc1b1d3ab26f87fabf3b" dependencies = [ "proc-macro2", "quote", @@ -950,19 +951,6 @@ dependencies = [ "webpki", ] -[[package]] -name = "rustls" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0d4a31f5d68413404705d6982529b0e11a9aacd4839d1d6222ee3b8cb4015e1" -dependencies = [ - "base64 0.11.0", - "log", - "ring", - "sct", - "webpki", -] - [[package]] name = "rustls" version = "0.18.0" @@ -1037,8 +1025,9 @@ dependencies = [ [[package]] name = "serenity" -version = "0.8.6" -source = "git+https://github.com/acdenisSK/serenity?rev=8c8a172e7f19ed792440547c7ef99d15aadb3938#8c8a172e7f19ed792440547c7ef99d15aadb3938" +version = "0.9.0-rc.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f2b6557e836289a35b45ecc9da78b464de79cec3aa9b7cfd07f654cbc478c00" dependencies = [ "async-tls", "async-trait", @@ -1052,7 +1041,7 @@ dependencies = [ "futures", "log", "reqwest", - "rustls 0.17.0", + "rustls 0.18.0", "serde", "serde_json", "static_assertions", diff --git a/Cargo.toml b/Cargo.toml index 4209ea5..77d2cc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,4 @@ once_cell = "1.4.0" ron = "0.6.0" serde = { version = "1.0.114", features = ["serde_derive"] } futures = "0.3.5" - -[dependencies.serenity] -git = "https://github.com/acdenisSK/serenity" -rev = "8c8a172e7f19ed792440547c7ef99d15aadb3938" \ No newline at end of file +serenity = "0.9.0-rc.0" diff --git a/src/main.rs b/src/main.rs index 7a05b13..65dbf39 100644 --- a/src/main.rs +++ b/src/main.rs @@ -552,7 +552,7 @@ async fn main() { #[cfg(unix)] let handle_sigterm = async { - let mut stream = signal(SignalKind::sigterm()); + let mut stream = signal(SignalKind::terminate()).expect("Error on getting sigterm stream"); stream.recv().await; println!("Stoping…"); alias::save_all();