File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1919targets = [" 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.
2525charset = [" dep:encoding_rs" , " dep:mime" ]
Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments