From 84a88cfd96d49175f79df214945555babf1a812c Mon Sep 17 00:00:00 2001 From: kangalioo Date: Tue, 28 Nov 2023 22:29:39 +0100 Subject: [PATCH] Bump to 0.6.0 --- CHANGELOG.md | 25 ++++++++++++++++++++++++- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- macros/Cargo.toml | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6ce88bc9bae..42b16bae8292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,10 +27,33 @@ this find-and-replace regex (VSCode flavor): To quickly make GitHub usernames into clickable links, prepend each username with @ and then run this find-and-replace regex (VSCode flavor): -- Find: (?<=Thanks to.*)(? +# 0.6.0 + +Now with serenity 0.12! + + +New features: +- `ChoiceParameter` is now not only a derive macro, but also a trait, so you can implement it manually ([bc250b8](https://github.com/serenity-rs/poise/commit/bc250b852d5dc3ef57c5ab1d27d6de0bf5599b0b)) +- `HelpConfiguration::include_description` can be used to toggle whether a single command's help output includes its `description`, or only its `help_text` ([0ad8ee6](https://github.com/serenity-rs/poise/commit/0ad8ee668ca2b131ec95cfd8f258f11d3f5b47fb)) + + +API updates: +- A lot of structs and enum are now `#[non_exhaustive]` to allow backwards compatible new features in the future ([035e035](https://github.com/serenity-rs/poise/commit/035e03574956f68af582e3ac28478ac32273e172), [6c08cfb](https://github.com/serenity-rs/poise/commit/6c08cfba3af84b4a740611f46f380a3f92aaf810), [1cbfeef](https://github.com/serenity-rs/poise/commit/1cbfeefd7ac4fb26ab73cb61620717bb971a172c)) +- `Command` no longer has `Default` bounds on its generics ([695ae1d](https://github.com/serenity-rs/poise/commit/695ae1dd8aaeeaf37129c3d53e90e63daaaa7be0)) +- Changed some field types on `Command` to be more idiomatic ([6c08cfb](https://github.com/serenity-rs/poise/commit/6c08cfba3af84b4a740611f46f380a3f92aaf810)) +- `CooldownTracker` methods now take a dedicated user-constructable `CooldownContext` instead of `Context<'_, U, E>`, to make `CooldownTracker` usable outside poise internals ([bd73861](https://github.com/serenity-rs/poise/commit/bd73861d2679c26040353eba460d933c7d3a7a15)) + +Behavior changes: +- Rework of the help command to make it nicer ([d38d226](https://github.com/serenity-rs/poise/commit/d38d226e82bd443f7615f4a505fc6803860d15ee), [d038ee6](https://github.com/serenity-rs/poise/commit/d038ee69ade7fc5bb90327093f5a90436eb30d45)) + +Detailed changelog: https://github.com/serenity-rs/poise/compare/v0.5.7...v0.6.0 + +Thanks to [@kangalio](https://github.com/kangalio), [@docwilco](https://github.com/docwilco), [@drwilco](https://github.com/drwilco), [@GnomedDev](https://github.com/GnomedDev), [@scottbot95](https://github.com/scottbot95)! + # 0.5.7 New features: diff --git a/Cargo.lock b/Cargo.lock index a9223602f727..45ecbeb00ad0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -964,7 +964,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "poise" -version = "0.5.7" +version = "0.6.0" dependencies = [ "async-trait", "derivative", @@ -985,7 +985,7 @@ dependencies = [ [[package]] name = "poise_macros" -version = "0.5.7" +version = "0.6.0" dependencies = [ "darling", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 46e757405351..9df8404b3360 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["kangalio "] edition = "2018" name = "poise" -version = "0.5.7" +version = "0.6.0" rust-version = "1.74.0" description = "A Discord bot framework for serenity" license = "MIT" @@ -11,7 +11,7 @@ repository = "https://github.com/serenity-rs/poise/" [dependencies] tokio = { version = "1.25.1", default-features = false } # for async in general futures-util = { version = "0.3.13", default-features = false } # for async in general -poise_macros = { path = "macros", version = "0.5.7" } # remember to update the version on changes! +poise_macros = { path = "macros", version = "0.6.0" } # remember to update the version on changes! async-trait = { version = "0.1.48", default-features = false } # various traits regex = { version = "1.6.0", default-features = false, features = ["std"] } # prefix tracing = { version = "0.1.40", features = ["log"] } # warning about weird state diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 50014ef490ba..ce5cafac0748 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poise_macros" -version = "0.5.7" # remember to update the version +version = "0.6.0" # remember to update the version authors = ["kangalio "] edition = "2018" description = "Internal macro implementation crate of poise"