1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//!
//!
//!

#![allow(unused_imports)]


extern crate futures;
extern crate tokio_core;
extern crate tokio_proto;
extern crate bytes;
extern crate parking_lot;
extern crate url;
extern crate redis_protocol;
extern crate float_cmp;
extern crate tokio_timer_patched as tokio_timer;
extern crate tokio_io;
extern crate rand;

#[macro_use]
extern crate log;
extern crate pretty_env_logger;

#[cfg(feature="enable-tls")]
extern crate native_tls;
#[cfg(feature="enable-tls")]
extern crate tokio_tls;

#[macro_use]
mod utils;
mod protocol;
mod multiplexer;

#[cfg(feature="mocks")]
mod mocks;

/// Error handling types.
pub mod error;
/// Configuration options, return value types, etc.
pub mod types;
/// The `RedisClient` implementation. See the `borrowed` and `owned` modules for most of the Redis command implementations.
pub mod client;
/// Size and latency metrics types.
pub mod metrics;
pub mod pool;

mod commands;
pub mod borrowed;
pub mod owned;

pub use client::RedisClient;

/// A helper module to re-export several common dependencies.
pub mod prelude {
  pub use crate::error::*;
  pub use crate::types::*;
  pub use crate::client::RedisClient;
}