finchers_session/
lib.rs

1// FIXME: remove it as soon as the rustc version used in docs.rs is updated
2#![cfg_attr(finchers_inject_extern_prelude, feature(extern_prelude))]
3
4//! Session support for Finchers.
5//!
6//! Supported backends:
7//!
8//! * Cookie
9//! * In-memory database
10//! * Redis (requires the feature flag `feature = "redis"`)
11//!
12//! # Feature Flags
13//!
14//! * `redis` - enable Redis backend (default: off)
15//! * `secure` - enable signing and encryption support for Cookie values
16//!              (default: on. it adds the crate `ring` to dependencies).
17
18#![doc(html_root_url = "https://docs.rs/finchers-session/0.2.0")]
19#![warn(
20    missing_docs,
21    missing_debug_implementations,
22    nonstandard_style,
23    rust_2018_idioms,
24    unused,
25)]
26//#![warn(rust_2018_compatibility)]
27#![cfg_attr(test, deny(warnings))]
28#![cfg_attr(test, doc(test(attr(deny(warnings)))))]
29
30#[macro_use]
31extern crate failure;
32extern crate finchers;
33#[cfg_attr(feature = "redis", macro_use)]
34extern crate futures;
35extern crate time;
36extern crate uuid;
37
38#[cfg(test)]
39extern crate http;
40
41mod session;
42#[cfg(test)]
43mod tests;
44mod util;
45
46pub mod cookie;
47pub mod in_memory;
48#[cfg(feature = "redis")]
49pub mod redis;
50
51pub use self::session::{RawSession, Session};