Chore: Fixup examples, bump version pre-push

Takes the chance to bring shared deps into the example workspace while we're here. Release notes, tags etc will follow in time.
This commit is contained in:
Kyle Simpson
2023-11-27 21:16:53 +00:00
parent 1ec569baf2
commit 22ceb175b6
11 changed files with 59 additions and 68 deletions

View File

@@ -11,7 +11,7 @@ name = "songbird"
readme = "README.md" readme = "README.md"
repository = "https://github.com/serenity-rs/songbird.git" repository = "https://github.com/serenity-rs/songbird.git"
rust-version = "1.74" rust-version = "1.74"
version = "0.4.0-rc-2" version = "0.4.0"
[dependencies] [dependencies]
async-trait = { optional = true, version = "0.1" } async-trait = { optional = true, version = "0.1" }
@@ -36,8 +36,8 @@ rusty_pool = { optional = true, version = "0.7" }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde-aux = { optional = true, version = "4"} serde-aux = { optional = true, version = "4"}
serde_json = "1" serde_json = "1"
serenity = { default-features = false, optional = true, version = "0.12.0-rc", features = ["voice", "gateway"] } serenity = { default-features = false, optional = true, version = "0.12.0", features = ["voice", "gateway"] }
serenity-voice-model = { optional = true, version = "0.1" } serenity-voice-model = { optional = true, version = "0.2" }
simd-json = { features = ["serde_impl"], optional = true, version = "0.13" } simd-json = { features = ["serde_impl"], optional = true, version = "0.13" }
socket2 = { optional = true, version = "0.5" } socket2 = { optional = true, version = "0.5" }
streamcatcher = { optional = true, version = "1" } streamcatcher = { optional = true, version = "1" }

View File

@@ -6,6 +6,17 @@ members = [
"serenity/voice_receive", "serenity/voice_receive",
"twilight", "twilight",
] ]
resolver = "2"
[workspace.dependencies]
reqwest = "0.11"
serenity = { features = ["cache", "framework", "standard_framework", "voice", "http", "rustls_backend"], version = "0.12" }
songbird = { path = "../", version = "0.4" }
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" }
tokio = { features = ["macros", "rt-multi-thread", "signal", "sync"], version = "1" }
tracing = "0.1"
tracing-subscriber = "0.2"
tracing-futures = "0.2"
[profile.release] [profile.release]
debug = true debug = true

View File

@@ -5,16 +5,11 @@ authors = ["my name <my@email.address>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] } reqwest = { workspace = true }
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" } serenity = { workspace = true }
tracing = "0.1" songbird = { workspace = true, default-features = true }
tracing-subscriber = "0.2" symphonia = { workspace = true }
tracing-futures = "0.2" tokio = { workspace = true }
reqwest = "0.11" tracing = { workspace = true }
tracing-subscriber = { workspace = true }
[dependencies.songbird] tracing-futures = { workspace = true }
path = "../../../"
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread", "signal"]

View File

@@ -33,6 +33,7 @@ use serenity::{
macros::{command, group}, macros::{command, group},
Args, Args,
CommandResult, CommandResult,
Configuration,
}, },
StandardFramework, StandardFramework,
}, },
@@ -68,7 +69,7 @@ async fn main() {
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment"); let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let framework = StandardFramework::new().group(&GENERAL_GROUP); let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); framework.configure(Configuration::new().prefix("~"));
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT; let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;

View File

@@ -5,15 +5,11 @@ authors = ["my name <my@email.address>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
serenity = { version = "0.12.0-rc", features = ["cache", "framework", "standard_framework", "voice", "http", "rustls_backend"] } reqwest = { workspace = true }
symphonia = { features = ["mp3"], version = "0.5.2" } serenity = { workspace = true }
tracing = "0.1" songbird = { workspace = true, default-features = true }
tracing-subscriber = "0.2" symphonia = { workspace = true }
tracing-futures = "0.2" tokio = { workspace = true }
tracing = { workspace = true }
[dependencies.songbird] tracing-subscriber = { workspace = true }
path = "../../../" tracing-futures = { workspace = true }
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread"]

View File

@@ -24,6 +24,7 @@ use serenity::{
macros::{command, group}, macros::{command, group},
Args, Args,
CommandResult, CommandResult,
Configuration,
}, },
StandardFramework, StandardFramework,
}, },
@@ -95,7 +96,7 @@ async fn main() {
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment"); let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let framework = StandardFramework::new().group(&GENERAL_GROUP); let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); framework.configure(Configuration::new().prefix("~"));
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT; let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;

View File

@@ -5,17 +5,11 @@ authors = ["my name <my@email.address>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
reqwest = "0.11" reqwest = { workspace = true }
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] } serenity = { workspace = true }
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" } songbird = { workspace = true, default-features = true, features = ["builtin-queue"] }
tracing = "0.1" symphonia = { workspace = true }
tracing-subscriber = "0.2" tokio = { workspace = true }
tracing-futures = "0.2" tracing = { workspace = true }
tracing-subscriber = { workspace = true }
[dependencies.songbird] tracing-futures = { workspace = true }
features = ["builtin-queue"]
path = "../../../"
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread", "signal"]

View File

@@ -28,6 +28,7 @@ use serenity::{
macros::{command, group}, macros::{command, group},
Args, Args,
CommandResult, CommandResult,
Configuration,
}, },
StandardFramework, StandardFramework,
}, },
@@ -75,7 +76,7 @@ async fn main() {
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment"); let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let framework = StandardFramework::new().group(&GENERAL_GROUP); let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); framework.configure(Configuration::new().prefix("~"));
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT; let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;

View File

@@ -6,15 +6,10 @@ edition = "2021"
[dependencies] [dependencies]
dashmap = "5" dashmap = "5"
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] } serenity = { workspace = true }
tracing = "0.1" songbird = { workspace = true, default-features = true, features = ["receive"] }
tracing-subscriber = "0.2" symphonia = { workspace = true }
tracing-futures = "0.2" tokio = { workspace = true }
tracing = { workspace = true }
[dependencies.songbird] tracing-subscriber = { workspace = true }
features = ["receive"] tracing-futures = { workspace = true }
path = "../../../"
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread"]

View File

@@ -24,6 +24,7 @@ use serenity::{
macros::{command, group}, macros::{command, group},
Args, Args,
CommandResult, CommandResult,
Configuration,
}, },
StandardFramework, StandardFramework,
}, },
@@ -209,7 +210,7 @@ async fn main() {
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment"); let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let framework = StandardFramework::new().group(&GENERAL_GROUP); let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); framework.configure(Configuration::new().prefix("~"));
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT; let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;

View File

@@ -6,17 +6,13 @@ edition = "2021"
[dependencies] [dependencies]
futures = "0.3" futures = "0.3"
reqwest = "0.11" reqwest = { workspace = true }
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" } songbird = { workspace = true, features = ["driver", "gateway", "twilight", "rustls"] }
tracing = "0.1" symphonia = { workspace = true }
tracing-subscriber = "0.2" tracing = { workspace = true }
tokio = { features = ["macros", "rt-multi-thread", "sync"], version = "1" } tracing-subscriber = { workspace = true }
tokio = { workspace = true }
twilight-gateway = "0.15" twilight-gateway = "0.15"
twilight-http = "0.15" twilight-http = "0.15"
twilight-model = "0.15" twilight-model = "0.15"
twilight-standby = "0.15" twilight-standby = "0.15"
[dependencies.songbird]
default-features = false
path = "../.."
features = ["driver", "gateway", "twilight", "rustls"]