reduce dependency tree by features

This commit is contained in:
Martin Algesten
2018-06-22 14:03:25 +02:00
parent 20bb7cbbde
commit cd4a1722fa
9 changed files with 140 additions and 42 deletions

View File

@@ -27,6 +27,7 @@ fn user_set_content_length_on_str() {
}
#[test]
#[cfg(feature = "json")]
fn content_length_on_json() {
test::set_handler("/content_length_on_json", |_req, _url| {
test::make_response(200, "OK", vec![], vec![])
@@ -57,6 +58,7 @@ fn content_length_and_chunked() {
}
#[test]
#[cfg(feature = "charset")]
fn str_with_encoding() {
test::set_handler("/str_with_encoding", |_req, _url| {
test::make_response(200, "OK", vec![], vec![])