Skip to content

Commit 5b68106

Browse files
authored
build(deps): minimize out-of-the-box dependencies (#902)
* build(deps): minimize out-of-the-box dependencies * fix test
1 parent ae81ef5 commit 5b68106

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1919
targets = ["x86_64-unknown-linux-gnu"]
2020

2121
[features]
22-
default = ["webpki-roots", "charset", "system-proxy"]
22+
default = ["webpki-roots"]
2323

2424
# Enable support for decoding text.
2525
charset = ["dep:encoding_rs", "dep:mime"]

src/client/multipart.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,10 @@ mod tests {
630630
))))),
631631
)
632632
.part("key1", Part::text("value1"))
633-
.part("key2", Part::text("value2").mime(mime::IMAGE_BMP))
633+
.part(
634+
"key2",
635+
Part::text("value2").mime(mime_guess::mime::IMAGE_BMP),
636+
)
634637
.part(
635638
"reader2",
636639
Part::stream(Body::stream(stream::once(future::ready::<
@@ -676,7 +679,7 @@ mod tests {
676679

677680
#[test]
678681
fn stream_to_end_with_header() {
679-
let mut part = Part::text("value2").mime(mime::IMAGE_BMP);
682+
let mut part = Part::text("value2").mime(mime_guess::mime::IMAGE_BMP);
680683
let mut headers = HeaderMap::new();
681684
headers.insert("Hdr3", "/a/b/c".parse().unwrap());
682685
part = part.headers(headers);

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@
255255
//! - **deflate**: Provides response body deflate decompression.
256256
//! - **json**: Provides serialization and deserialization for JSON bodies.
257257
//! - **multipart**: Provides functionality for multipart forms.
258-
//! - **charset** *(enabled by default)*: Improved support for decoding text.
258+
//! - **charset**: Improved support for decoding text.
259259
//! - **stream**: Adds support for `futures::Stream`.
260260
//! - **socks**: Provides SOCKS5 and SOCKS4 proxy support.
261261
//! - **ws**: Provides websocket support.
262262
//! - **hickory-dns**: Enables a hickory-dns async resolver instead of default threadpool using
263263
//! `getaddrinfo`.
264264
//! - **webpki-roots** *(enabled by default)*: Use the webpki-roots crate for root certificates.
265-
//! - **system-proxy** *(enabled by default)*: Enable system proxy support.
265+
//! - **system-proxy**: Enable system proxy support.
266266
//! - **tracing**: Enable tracing logging support.
267267
//!
268268
//! [client]: ./struct.Client.html

0 commit comments

Comments
 (0)