redis_driver/
lib.rs

1//! A Redis client for Rust
2
3mod clients;
4mod commands;
5mod error;
6mod network;
7pub mod resp;
8
9pub use clients::*;
10pub use commands::*;
11pub use error::*;
12use network::*;
13#[cfg(feature = "pool")]
14pub use bb8;
15
16/// Library general result type.
17pub type Result<T> = std::result::Result<T, Error>;
18/// Library general future type.
19pub type Future<'a, T> = futures::future::BoxFuture<'a, Result<T>>;
20
21#[cfg(all(feature = "tokio-runtime", feature = "async-std-runtime"))]
22compile_error!("feature \"tokio-runtime\" and feature \"async-std-runtime\" cannot be enabled at the same time");
23
24#[cfg(test)]
25mod tests;
26