Songbird: Tokio 1.0 (#36)
Migrates to the new version of tokio, requiring channel and sleep changes in a few locations. Additionally points to the in-tree v0.3 version of twilight.
This commit is contained in:
@@ -18,5 +18,5 @@ git = "https://github.com/serenity-rs/serenity"
|
||||
branch = "current"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "0.2"
|
||||
features = ["macros"]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
|
||||
@@ -19,5 +19,5 @@ git = "https://github.com/serenity-rs/serenity"
|
||||
branch = "current"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "0.2"
|
||||
features = ["macros"]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
|
||||
@@ -5,8 +5,9 @@ authors = ["my name <my@email.address>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
env_logger = "~0.6"
|
||||
log = "~0.4"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
tracing-futures = "0.2"
|
||||
|
||||
[dependencies.songbird]
|
||||
path = "../../../"
|
||||
@@ -17,5 +18,5 @@ git = "https://github.com/serenity-rs/serenity"
|
||||
branch = "current"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "0.2"
|
||||
features = ["macros"]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
|
||||
@@ -153,6 +153,8 @@ struct General;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
// Configure the client with your Discord bot token in the environment.
|
||||
let token = env::var("DISCORD_TOKEN")
|
||||
.expect("Expected a token in the environment");
|
||||
|
||||
@@ -18,5 +18,5 @@ git = "https://github.com/serenity-rs/serenity"
|
||||
branch = "current"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "0.2"
|
||||
features = ["macros"]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
|
||||
@@ -9,11 +9,11 @@ futures = "0.3"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
serde_json = { version = "1" }
|
||||
tokio = { features = ["macros", "rt-threaded", "sync"], version = "0.2" }
|
||||
twilight-gateway = "0.2"
|
||||
twilight-http = "0.2"
|
||||
twilight-model = "0.2"
|
||||
twilight-standby = "0.2"
|
||||
tokio = { features = ["macros", "rt-multi-thread", "sync"], version = "1" }
|
||||
twilight-gateway = { git = "https://github.com/twilight-rs/twilight", branch = "v0.3" }
|
||||
twilight-http = { git = "https://github.com/twilight-rs/twilight", branch = "v0.3" }
|
||||
twilight-model = { git = "https://github.com/twilight-rs/twilight", branch = "v0.3" }
|
||||
twilight-standby = { git = "https://github.com/twilight-rs/twilight", branch = "v0.3" }
|
||||
|
||||
[dependencies.songbird]
|
||||
path = "../.."
|
||||
|
||||
Reference in New Issue
Block a user