Skip to content

Commit 16b7aec

Browse files
committed
Added optional feature docs
1 parent 120703c commit 16b7aec

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/lib.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@
4848
//! # fn main() {}
4949
//! ```
5050
//!
51-
//! ## Unix Sockets
51+
//! ## Optional Features
5252
//!
53-
//! By default this library does not support unix sockets on older versions
54-
//! of Rust but you can optionally compile it with unix sockets enabled by
55-
//! enabling the `with-unix-sockets` feature flag. On rust 1.10 or later
56-
//! this is not needed.
53+
//! There are currently two features defined that can enable additional
54+
//! functionality if so desired.
5755
//!
58-
//! ```ini
59-
//! [dependencies.redis]
60-
//! version = "*"
61-
//! features = ["with-unix-sockets"]
62-
//! ```
56+
//! `with-unix-sockets`:
57+
//! By default this library does not support unix sockets on older versions
58+
//! of Rust but you can optionally compile it with unix sockets enabled by
59+
//! enabling the `with-unix-sockets` feature flag. On rust 1.10 or later
60+
//! this is not needed.
61+
//!
62+
//! `with-rustc-json`:
63+
//! This feature flag enables the `rustc_serialize` JSON support.
6364
//!
6465
//! ## Connection Parameters
6566
//!

0 commit comments

Comments
 (0)