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.
|
- Updated `axum` to v0.6.0.
|
||||||
- The module structure
|
- The module structure
|
||||||
- `teloxide::dispatching::update_listeners` => `teloxide::update_listeners`
|
- `teloxide::dispatching::update_listeners` => `teloxide::update_listeners`
|
||||||
- `teloxide::dispatching::dialogue::storage` => `teloxide::storage`
|
|
||||||
- `teloxide::dispatching::repls` => `teloxide::repls`
|
- `teloxide::dispatching::repls` => `teloxide::repls`
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -93,23 +93,24 @@
|
||||||
//!
|
//!
|
||||||
//! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs
|
//! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs
|
||||||
|
|
||||||
/// This module was moved to [`teloxide::storage`].
|
#[cfg(feature = "redis-storage")]
|
||||||
///
|
pub use self::{RedisStorage, RedisStorageError};
|
||||||
/// [`teloxide::storage`]: crate::storage
|
|
||||||
#[deprecated]
|
#[cfg(feature = "sqlite-storage")]
|
||||||
pub mod storage {
|
pub use self::{SqliteStorage, SqliteStorageError};
|
||||||
pub use crate::storage::*;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub use crate::storage::*;
|
|
||||||
pub use get_chat_id::GetChatId;
|
pub use get_chat_id::GetChatId;
|
||||||
|
pub use storage::*;
|
||||||
|
|
||||||
use crate::{dispatching::DpHandlerDescription, types::ChatId};
|
|
||||||
use dptree::{prelude::DependencyMap, Handler};
|
use dptree::{prelude::DependencyMap, Handler};
|
||||||
|
use teloxide_core::types::ChatId;
|
||||||
|
|
||||||
use std::{fmt::Debug, marker::PhantomData, sync::Arc};
|
use std::{fmt::Debug, marker::PhantomData, sync::Arc};
|
||||||
|
|
||||||
|
use super::DpHandlerDescription;
|
||||||
|
|
||||||
mod get_chat_id;
|
mod get_chat_id;
|
||||||
|
mod storage;
|
||||||
|
|
||||||
/// A handle for controlling dialogue state.
|
/// A handle for controlling dialogue state.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
dispatching::{dialogue::GetChatId, DpHandlerDescription},
|
dispatching::{
|
||||||
storage::Storage,
|
dialogue::{GetChatId, Storage},
|
||||||
|
DpHandlerDescription,
|
||||||
|
},
|
||||||
types::{Me, Message},
|
types::{Me, Message},
|
||||||
utils::command::BotCommands,
|
utils::command::BotCommands,
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,7 +72,6 @@ pub mod prelude;
|
||||||
#[cfg(all(feature = "ctrlc_handler"))]
|
#[cfg(all(feature = "ctrlc_handler"))]
|
||||||
pub mod repls;
|
pub mod repls;
|
||||||
pub mod stop;
|
pub mod stop;
|
||||||
pub mod storage;
|
|
||||||
pub mod update_listeners;
|
pub mod update_listeners;
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue