From 8c3a649db9f2ec824dba124e991207a38bc153c5 Mon Sep 17 00:00:00 2001 From: Jannik Schaper Date: Thu, 11 Jan 2024 15:03:48 +0100 Subject: [PATCH] Bump to 0.6.1 --- CHANGELOG.md | 15 +++++++++++++++ Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- macros/Cargo.toml | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42b16bae8292..75cd8c4c5b83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,21 @@ this find-and-replace regex (VSCode flavor): - Replace: [@$1](https://github.com/$1) --> +# 0.6.1 + +New features: +- Choice parameters can now be defined inline in a function signature ([6167311](https://github.com/serenity-rs/poise/commit/6167311216065b953c6dc64406e56a31e52cd9a1)) + + For example: + ```rust + #[choices("Europe", "Asia", "Africa", "America", "Australia", "Antarctica")] + continent: &'static str + ``` + +Detailed changelog: https://github.com/serenity-rs/poise/compare/v0.6.0...v0.6.1 + +Thanks to [@kangalio](https://github.com/kangalio)! + # 0.6.0 Now with serenity 0.12! diff --git a/Cargo.lock b/Cargo.lock index 9e85b95dad70..b9f9f5270fd7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -964,7 +964,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "poise" -version = "0.6.1-rc1" +version = "0.6.1" dependencies = [ "async-trait", "derivative", @@ -985,7 +985,7 @@ dependencies = [ [[package]] name = "poise_macros" -version = "0.6.1-rc1" +version = "0.6.1" dependencies = [ "darling", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 8308d4dc1ea0..59f5058d3751 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["kangalio "] edition = "2018" name = "poise" -version = "0.6.1-rc1" +version = "0.6.1" 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.6.1-rc1" } # remember to update the version on changes! +poise_macros = { path = "macros", version = "0.6.1" } # 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 456b43322961..cc3512de1d56 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poise_macros" -version = "0.6.1-rc1" # remember to update the version +version = "0.6.1" # remember to update the version authors = ["kangalio "] edition = "2018" description = "Internal macro implementation crate of poise"