mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Merge pull request #776 from Turbo87/fix-feature-gate
prelude: Add missing feature gate for `dispatching::repls` import
This commit is contained in:
commit
ff1bf7092c
7 changed files with 23 additions and 5 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -152,6 +152,13 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --examples --features full
|
args: --examples --features full
|
||||||
|
|
||||||
|
# TODO: prolly move it to a separate step?
|
||||||
|
- name: Check with no default features
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --no-default-features
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Run linter
|
name: Run linter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## unreleased
|
## unreleased
|
||||||
|
|
||||||
|
## 0.11.3 - 2022-11-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Add another missing feature gate for `dispatching::repls` import ([issue #770](https://github.com/teloxide/teloxide/issues/770))
|
||||||
|
|
||||||
## 0.11.2 - 2022-11-18
|
## 0.11.2 - 2022-11-18
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "teloxide"
|
name = "teloxide"
|
||||||
version = "0.11.2"
|
version = "0.11.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "An elegant Telegram bots framework for Rust"
|
description = "An elegant Telegram bots framework for Rust"
|
||||||
repository = "https://github.com/teloxide/teloxide"
|
repository = "https://github.com/teloxide/teloxide"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
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.11.2
|
## 0.11 -> 0.11.3
|
||||||
|
|
||||||
### teloxide
|
### teloxide
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
> [v0.11 -> v0.11.2 migration guide >>](MIGRATION_GUIDE.md#011---0112)
|
> [v0.11 -> v0.11.3 migration guide >>](MIGRATION_GUIDE.md#011---0113)
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="./ICON.png" width="250"/>
|
<img src="./ICON.png" width="250"/>
|
||||||
|
|
|
@ -144,6 +144,9 @@ where
|
||||||
ctrlc_handler,
|
ctrlc_handler,
|
||||||
} = self;
|
} = self;
|
||||||
|
|
||||||
|
// If the `ctrlc_handler` feature is not enabled, don't emit a warning.
|
||||||
|
let _ = ctrlc_handler;
|
||||||
|
|
||||||
let dp = Dispatcher {
|
let dp = Dispatcher {
|
||||||
bot,
|
bot,
|
||||||
dependencies,
|
dependencies,
|
||||||
|
|
|
@ -6,10 +6,12 @@ pub use crate::error_handlers::{LoggingErrorHandler, OnError};
|
||||||
pub use crate::respond;
|
pub use crate::respond;
|
||||||
|
|
||||||
pub use crate::dispatching::{
|
pub use crate::dispatching::{
|
||||||
dialogue::Dialogue, repls::CommandReplExt as _, Dispatcher, HandlerExt as _,
|
dialogue::Dialogue, Dispatcher, HandlerExt as _, MessageFilterExt as _, UpdateFilterExt as _,
|
||||||
MessageFilterExt as _, UpdateFilterExt as _,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(feature = "ctrlc_handler")]
|
||||||
|
pub use crate::dispatching::repls::CommandReplExt as _;
|
||||||
|
|
||||||
pub use teloxide_core::{
|
pub use teloxide_core::{
|
||||||
requests::ResponseResult,
|
requests::ResponseResult,
|
||||||
types::{
|
types::{
|
||||||
|
|
Loading…
Reference in a new issue