Release teloxide v0.12.0

This commit is contained in:
Hirrolot 2023-01-18 01:14:31 +06:00
parent 6fb2e37197
commit 125917cfeb
No known key found for this signature in database
GPG key ID: F0C33B48BD883C81
4 changed files with 14 additions and 10 deletions

View file

@ -6,8 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased ## unreleased
## 0.12.0 - 2023-01-17
### Changed ### 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. - Updated `axum` to v0.6.0.
- The module structure - The module structure
- `teloxide::dispatching::update_listeners` => `teloxide::update_listeners` - `teloxide::dispatching::update_listeners` => `teloxide::update_listeners`

View file

@ -1,13 +1,13 @@
This document describes breaking changes of `teloxide` crate, as well as the ways to update code. 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. 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 ### teloxide
`rocksdb-storage` feature and associated items were removed. The `rocksdb-storage` feature and associated items were removed. If you need to use RocksDB, you can use the [`teloxide-rocksdb`] crate.
If you are using rocksdb storage, you'll need to either write `Storage` impl yourself, or use a third party crate.
<!-- FIXME: add a link once there *is* a third party crate --> [`teloxide-rocksdb`]: https://github.com/teloxide/teloxide-rocksdb
## 0.11 -> 0.11.3 ## 0.11 -> 0.11.3

View file

@ -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)
<div align="center"> <div align="center">
<img src="./media/teloxide-logo.png" width="250"/> <img src="./media/teloxide-logo.png" width="250"/>
@ -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`: 5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
teloxide = { version = "0.11", features = ["macros"] } teloxide = { version = "0.12", features = ["macros"] }
log = "0.4" log = "0.4"
pretty_env_logger = "0.4" pretty_env_logger = "0.4"
tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] } tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] }

View file

@ -1,6 +1,6 @@
[package] [package]
name = "teloxide" name = "teloxide"
version = "0.11.3" version = "0.12.0"
description = "An elegant Telegram bots framework for Rust" description = "An elegant Telegram bots framework for Rust"
rust-version.workspace = true rust-version.workspace = true
@ -63,8 +63,8 @@ full = [
[dependencies] [dependencies]
teloxide-core = { version = "0.8.0", default-features = false } teloxide-core = { version = "0.9.0", default-features = false }
# teloxide-macros = { version = "0.7.0", optional = true } teloxide-macros = { version = "0.7.1", optional = true }
serde_json = "1.0" serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
@ -73,7 +73,7 @@ dptree = "0.3.0"
# These lines are used only for development. # These lines are used only for development.
# teloxide-core = { path = "../teloxide-core", default-features = false } # 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" } # dptree = { git = "https://github.com/teloxide/dptree", rev = "df578e4" }
tokio = { version = "1.8", features = ["fs"] } tokio = { version = "1.8", features = ["fs"] }