Add cookie_rs as default feature and implement conditional compilation.

This commit is contained in:
Stanislav Panferov
2014-10-08 11:38:01 +04:00
committed by Sean McArthur
parent 20f156c592
commit a3fc51611f
4 changed files with 33 additions and 14 deletions

View File

@@ -4,6 +4,10 @@ name = "hyper"
version = "0.0.1"
authors = ["Sean McArthur <sean.monstar@gmail.com>"]
[features]
cookie_rs = ["cookie"]
default = ["cookie_rs"]
[dependencies.url]
git = "https://github.com/servo/rust-url"
@@ -32,4 +36,5 @@ git = "https://github.com/carllerche/curl-rust"
git = "https://github.com/chris-morgan/rust-http"
[dependencies.cookie]
git = "https://github.com/alexcrichton/cookie-rs"
git = "https://github.com/alexcrichton/cookie-rs"
optional = true