Merge pull request #100 from teloxide/bump

Prepare for 0.3 release
This commit is contained in:
Hirrolot 2021-07-04 07:57:54 -07:00 committed by GitHub
commit d2d1b8fae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 17 deletions

View file

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
## 0.3.0
### Added
- `impl Clone` for {`CacheMe`, `DefaultParseMode`, `Throttle`} ([#76][pr76])
@ -52,12 +54,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `GetChatAdministrators` output type `ChatMember` => `Vec<ChatMember>` ([#73][pr73])
- `reqwest` dependency bringing `native-tls` in even when `rustls` was selected ([#71][pr71])
- Type of `{Restricted,Kicked}::until_date` fields: `i32` => `i64` ([#74][pr74])
- Type of `PhotoSize::{width,height}` fields: `i32` => `u32` ([#100][pr100])
[pr71]: https://github.com/teloxide/teloxide-core/pull/71
[pr73]: https://github.com/teloxide/teloxide-core/pull/73
[pr75]: https://github.com/teloxide/teloxide-core/pull/75
[pr79]: https://github.com/teloxide/teloxide-core/pull/79
[pr94]: https://github.com/teloxide/teloxide-core/pull/94
[pr100]: https://github.com/teloxide/teloxide-core/pull/100
## [0.2.2] - 2020-03-22

View file

@ -1,7 +1,7 @@
[package]
name = "teloxide-core"
description = "Core part of the `teloxide` library - telegram bot API client"
version = "0.2.2"
version = "0.3.0"
edition = "2018"
authors = [
"Temirkhan Myrzamadi <hirrolot@gmail.com>",
@ -32,7 +32,7 @@ exclude = [
[dependencies]
futures = "0.3.5"
tokio = { version = "1.2.0", features = ["fs"] }
tokio = { version = "1.8.0", features = ["fs"] }
tokio-util = "0.6.0"
pin-project = "1.0.3"
bytes = "1.0.0"

View file

@ -28,7 +28,7 @@
</div>
```toml
teloxide_core = "0.2"
teloxide_core = "0.3"
```
_Compiler support: requires rustc 1.49+_.

View file

@ -5,7 +5,7 @@
//! asynchronouns and built using [`tokio`].
//!
//!```toml
//! teloxide_core = "0.2"
//! teloxide_core = "0.3"
//! ```
//! _Compiler support: requires rustc 1.49+_
//!

View file

@ -16,10 +16,10 @@ pub struct PhotoSize {
pub file_unique_id: String,
/// Photo width.
pub width: i32,
pub width: u32,
/// Photo height.
pub height: i32,
pub height: u32,
/// File size.
pub file_size: Option<u32>,

View file

@ -62,17 +62,6 @@ impl ReplyMarkup {
pub fn force_reply() -> Self {
Self::ForceReply(ForceReply::new())
}
// FIXME(waffle): remove this method in the next minor version bump (0.3.0)
#[doc(hidden)]
#[deprecated = "This method has a typo in name. Use `ReplyMarkup::keyboard` instead."]
pub fn keyboad<K>(keyboard: K) -> Self
where
K: IntoIterator,
K::Item: IntoIterator<Item = KeyboardButton>,
{
Self::Keyboard(KeyboardMarkup::new(keyboard))
}
}
#[cfg(test)]