mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Release teloxide v0.12.0
This commit is contained in:
parent
6fb2e37197
commit
125917cfeb
4 changed files with 14 additions and 10 deletions
|
@ -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`
|
||||
|
|
|
@ -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.
|
||||
<!-- FIXME: add a link once there *is* 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
|
||||
|
||||
|
|
|
@ -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">
|
||||
<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`:
|
||||
```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"] }
|
||||
|
|
|
@ -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"] }
|
||||
|
|
Loading…
Reference in a new issue