From 91aeb2fa0f52c5b035be72567aaad5a2ea824f1f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 19 Sep 2024 11:01:11 +0300 Subject: [PATCH] release 0.34.0 (#219) * release 0.34.0 * update README --- CHANGELOG.md | 16 ++++++++++++++++ Cargo.toml | 2 +- README.md | 10 +++++----- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c71c4d..e6cb9bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.34.0 (2024-09-19) + +- docs: show the required feature on docs.rs by - [#209](https://github.com/ayrat555/frankenstein/pull/209) +- refactor!: flatten the module structure by - [#208](https://github.com/ayrat555/frankenstein/pull/208) +- perf!: always take params reference by - [#211](https://github.com/ayrat555/frankenstein/pull/211) +- refactor!: use MessageOrBool over EditMessageResponse by - [#212](https://github.com/ayrat555/frankenstein/pull/212) +- build!: remove implicit features by - [#214](https://github.com/ayrat555/frankenstein/pull/214) +- Use consistent builder derive configs across API types by - [#213](https://github.com/ayrat555/frankenstein/pull/213) +- test: improve testing for api error response by - [#216](https://github.com/ayrat555/frankenstein/pull/216) +- refactor!: simplify traits with macros by - [#210](https://github.com/ayrat555/frankenstein/pull/210) +- style: group imports by - [#217](https://github.com/ayrat555/frankenstein/pull/217) +- refactor: generalize serde logic into macro by - [#218](https://github.com/ayrat555/frankenstein/pull/218) +- test(error): expect api error by - [#222](https://github.com/ayrat555/frankenstein/pull/222) +- docs: deduplicate spaces by - [#220](https://github.com/ayrat555/frankenstein/pull/220) +- test(json): assert_str by - [#221](https://github.com/ayrat555/frankenstein/pull/221) + ## 0.33.0 (2024-09-11) - refactor!: merge Error and HttpError by @EdJoPaTo - [#204](https://github.com/ayrat555/frankenstein/pull/204) diff --git a/Cargo.toml b/Cargo.toml index 9b0ddf8..00a772c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "frankenstein" -version = "0.33.0" +version = "0.34.0" authors = ["Ayrat Badykov ", "EdJoPaTo ", "Pepe Márquez "] description = "Telegram bot API client for Rust" edition = "2021" diff --git a/README.md b/README.md index de04478..803e92a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Run `cargo add frankenstein` or add the following to your `Cargo.toml`. ```toml [dependencies] -frankenstein = "0.33" +frankenstein = "0.34" ``` ## Features @@ -34,13 +34,13 @@ frankenstein = "0.33" To use the async client add the following line to your `Cargo.toml` file: ```toml -frankenstein = { version = "0.33", default-features = false, features = ["async-http-client"] } +frankenstein = { version = "0.34", default-features = false, features = ["async-http-client"] } ``` You can also disable all features. In this case the crate will ship only with Telegram types. ```toml -frankenstein = { version = "0.33", default-features = false } +frankenstein = { version = "0.34", default-features = false } ``` ## Usage @@ -188,7 +188,7 @@ AsyncApi::builder().api_url(api_url).client(client).build() ### Documentation -Frankenstein implements all Telegram bot API methods. To see which parameters you should pass, check [docs.rs](https://docs.rs/frankenstein/0.33.0/frankenstein/api_traits/telegram_api/trait.TelegramApi.html#provided-methods) +Frankenstein implements all Telegram bot API methods. To see which parameters you should pass, check [docs.rs](https://docs.rs/frankenstein/0.34.0/frankenstein/api_traits/telegram_api/trait.TelegramApi.html#provided-methods) You can check out real-world bots created using this library: @@ -204,7 +204,7 @@ The library uses `ureq` HTTP client by default, but it can be easily replaced wi `ureq` comes with a default feature (`impl`). So the feature should be disabled. ```toml -frankenstein = { version = "0.33", default-features = false, features = ["telegram-trait"] } +frankenstein = { version = "0.34", default-features = false, features = ["telegram-trait"] } ``` Then implement the `TelegramApi` trait for your HTTP client which requires two functions: