From 125917cfebf91681c01e244d5ae7383e6d551c54 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Wed, 18 Jan 2023 01:14:31 +0600 Subject: [PATCH] Release teloxide v0.12.0 --- CHANGELOG.md | 4 ++++ MIGRATION_GUIDE.md | 8 ++++---- README.md | 4 ++-- crates/teloxide/Cargo.toml | 8 ++++---- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 265d22fc..874c364a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## unreleased +## 0.12.0 - 2023-01-17 + ### Changed +- Updated `teloxide-macros` to v0.7.1; see its [changelog](crates/teloxide-macros/CHANGELOG.md#071---2023-01-17) for more. +- Updated `teloxide-core` to v0.9.0; see its [changelog](crates/teloxide-core/CHANGELOG.md#090---2023-01-17) for more. - Updated `axum` to v0.6.0. - The module structure - `teloxide::dispatching::update_listeners` => `teloxide::update_listeners` diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index acbf9301..160bc429 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -1,13 +1,13 @@ This document describes breaking changes of `teloxide` crate, as well as the ways to update code. Note that the list of required changes is not fully exhaustive and it may lack something in rare cases. -## 0.11 -> 0.?? +## 0.11 -> 0.12 ### teloxide -`rocksdb-storage` feature and associated items were removed. -If you are using rocksdb storage, you'll need to either write `Storage` impl yourself, or use a third party crate. - +The `rocksdb-storage` feature and associated items were removed. If you need to use RocksDB, you can use the [`teloxide-rocksdb`] crate. + +[`teloxide-rocksdb`]: https://github.com/teloxide/teloxide-rocksdb ## 0.11 -> 0.11.3 diff --git a/README.md b/README.md index 391f9345..49ab32db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> [v0.11 -> v0.11.3 migration guide >>](MIGRATION_GUIDE.md#011---0113) +> [v0.11 -> v0.12 migration guide >>](MIGRATION_GUIDE.md#011---012)
@@ -72,7 +72,7 @@ $ rustup override set nightly 5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`: ```toml [dependencies] -teloxide = { version = "0.11", features = ["macros"] } +teloxide = { version = "0.12", features = ["macros"] } log = "0.4" pretty_env_logger = "0.4" tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] } diff --git a/crates/teloxide/Cargo.toml b/crates/teloxide/Cargo.toml index 97e4169c..ca104fde 100644 --- a/crates/teloxide/Cargo.toml +++ b/crates/teloxide/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teloxide" -version = "0.11.3" +version = "0.12.0" description = "An elegant Telegram bots framework for Rust" rust-version.workspace = true @@ -63,8 +63,8 @@ full = [ [dependencies] -teloxide-core = { version = "0.8.0", default-features = false } -# teloxide-macros = { version = "0.7.0", optional = true } +teloxide-core = { version = "0.9.0", default-features = false } +teloxide-macros = { version = "0.7.1", optional = true } serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } @@ -73,7 +73,7 @@ dptree = "0.3.0" # These lines are used only for development. # teloxide-core = { path = "../teloxide-core", default-features = false } -teloxide-macros = { path = "../teloxide-macros", optional = true } +# teloxide-macros = { path = "../teloxide-macros", optional = true } # dptree = { git = "https://github.com/teloxide/dptree", rev = "df578e4" } tokio = { version = "1.8", features = ["fs"] }