mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
revert move of storage
module
This commit is contained in:
parent
a366334710
commit
6f1bb4b519
10 changed files with 14 additions and 13 deletions
|
@ -11,7 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Updated `axum` to v0.6.0.
|
||||
- The module structure
|
||||
- `teloxide::dispatching::update_listeners` => `teloxide::update_listeners`
|
||||
- `teloxide::dispatching::dialogue::storage` => `teloxide::storage`
|
||||
- `teloxide::dispatching::repls` => `teloxide::repls`
|
||||
|
||||
### Removed
|
||||
|
|
|
@ -93,23 +93,24 @@
|
|||
//!
|
||||
//! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs
|
||||
|
||||
/// This module was moved to [`teloxide::storage`].
|
||||
///
|
||||
/// [`teloxide::storage`]: crate::storage
|
||||
#[deprecated]
|
||||
pub mod storage {
|
||||
pub use crate::storage::*;
|
||||
}
|
||||
#[cfg(feature = "redis-storage")]
|
||||
pub use self::{RedisStorage, RedisStorageError};
|
||||
|
||||
#[cfg(feature = "sqlite-storage")]
|
||||
pub use self::{SqliteStorage, SqliteStorageError};
|
||||
|
||||
pub use crate::storage::*;
|
||||
pub use get_chat_id::GetChatId;
|
||||
pub use storage::*;
|
||||
|
||||
use crate::{dispatching::DpHandlerDescription, types::ChatId};
|
||||
use dptree::{prelude::DependencyMap, Handler};
|
||||
use teloxide_core::types::ChatId;
|
||||
|
||||
use std::{fmt::Debug, marker::PhantomData, sync::Arc};
|
||||
|
||||
use super::DpHandlerDescription;
|
||||
|
||||
mod get_chat_id;
|
||||
mod storage;
|
||||
|
||||
/// A handle for controlling dialogue state.
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
use crate::{
|
||||
dispatching::{dialogue::GetChatId, DpHandlerDescription},
|
||||
storage::Storage,
|
||||
dispatching::{
|
||||
dialogue::{GetChatId, Storage},
|
||||
DpHandlerDescription,
|
||||
},
|
||||
types::{Me, Message},
|
||||
utils::command::BotCommands,
|
||||
};
|
||||
|
|
|
@ -72,7 +72,6 @@ pub mod prelude;
|
|||
#[cfg(all(feature = "ctrlc_handler"))]
|
||||
pub mod repls;
|
||||
pub mod stop;
|
||||
pub mod storage;
|
||||
pub mod update_listeners;
|
||||
pub mod utils;
|
||||
|
||||
|
|
Loading…
Reference in a new issue