File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2020 - uses : Swatinem/rust-cache@v2
2121 - name : Build
2222 run : cargo build --verbose
23+ - name : Build
24+ run : cargo build --verbose --no-default-features
2325 - name : Run tests
2426 run : cargo test --verbose
2527 - name : Run tests --no-default-features --features rustls-client
Original file line number Diff line number Diff line change 1+ #![ cfg( any( feature = "native-tls-client" , feature = "rustls-client" ) ) ]
2+
13use bytes:: Bytes ;
24use http_body_util:: Empty ;
35use hyper:: {
@@ -14,9 +16,6 @@ compile_error!(
1416 "feature \" native-tls-client\" and feature \" rustls-client\" cannot be enabled at the same time"
1517) ;
1618
17- #[ cfg( all( not( feature = "native-tls-client" ) , not( feature = "rustls-client" ) ) ) ]
18- compile_error ! ( "feature \" native-tls-client\" or feature \" rustls-client\" must be enabled" ) ;
19-
2019#[ derive( thiserror:: Error , Debug ) ]
2120pub enum Error {
2221 #[ error( "{0} doesn't have an valid host" ) ]
Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ pub use moka;
2121#[ cfg( feature = "native-tls-client" ) ]
2222pub use tokio_native_tls;
2323
24+ #[ cfg( any( feature = "native-tls-client" , feature = "rustls-client" ) ) ]
2425pub mod default_client;
2526mod tls;
2627
28+ #[ cfg( any( feature = "native-tls-client" , feature = "rustls-client" ) ) ]
2729pub use default_client:: DefaultClient ;
2830
2931#[ derive( Clone ) ]
You can’t perform that action at this time.
0 commit comments