Skip to content

Commit

Permalink
Correct feature flagging
Browse files Browse the repository at this point in the history
I did compile all feature combinations to ensure it's proper now.
  • Loading branch information
kayabaNerve committed Nov 30, 2023
1 parent 7434a6e commit f077d75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions common/request/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
hyper = { version = "1", default-features = false, features = ["http1", "client"] }
hyper-util = { version = "0.1", default-features = false, features = ["http1", "client", "tokio"] }
hyper-util = { version = "0.1", default-features = false, features = ["http1", "client-legacy", "tokio"] }
http-body-util = { version = "0.1", default-features = false }

tokio = { version = "1", default-features = false }

tower-service = { version = "0.3", default-features = false, optional = true }
tower-service = { version = "0.3", default-features = false }
hyper-boring = { version = "5", default-features = false, optional = true }

zeroize = { version = "1", optional = true }
base64ct = { version = "1", features = ["alloc"], optional = true }

[features]
tls = ["tower-service", "hyper-boring"]
tls = ["hyper-boring"]
basic-auth = ["zeroize", "base64ct"]
default = ["tls"]
1 change: 0 additions & 1 deletion common/request/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::sync::Arc;

use tokio::sync::Mutex;

#[cfg(feature = "tls")]
use tower_service::Service as TowerService;
#[cfg(feature = "tls")]
use hyper_boring::HttpsConnector;
Expand Down
3 changes: 2 additions & 1 deletion common/request/src/request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use hyper::body::Bytes;
#[cfg(feature = "basic-auth")]
use hyper::{body::Bytes, header::HeaderValue};
use hyper::header::HeaderValue;
pub use http_body_util::Full;

#[cfg(feature = "basic-auth")]
Expand Down

0 comments on commit f077d75

Please sign in to comment.