diff --git a/crates/axum-utils/Cargo.toml b/crates/axum-utils/Cargo.toml index 6a30f414..ce66a8e6 100644 --- a/crates/axum-utils/Cargo.toml +++ b/crates/axum-utils/Cargo.toml @@ -39,6 +39,5 @@ mas-storage = { path = "../storage" } mas-templates = { path = "../templates" } [features] -default = ["native-roots"] native-roots = ["mas-http/native-roots"] webpki-roots = ["mas-http/webpki-roots"] diff --git a/crates/handlers/Cargo.toml b/crates/handlers/Cargo.toml index d5648c70..9a497d0b 100644 --- a/crates/handlers/Cargo.toml +++ b/crates/handlers/Cargo.toml @@ -65,8 +65,6 @@ mas-templates = { path = "../templates" } indoc = "1.0.7" [features] -default = ["native-roots"] - # Use the native root certificates native-roots = ["mas-axum-utils/native-roots", "mas-http/native-roots"] # Use the webpki root certificates diff --git a/crates/http/Cargo.toml b/crates/http/Cargo.toml index ab85a8e1..3b8997f6 100644 --- a/crates/http/Cargo.toml +++ b/crates/http/Cargo.toml @@ -39,7 +39,6 @@ tokio = { version = "1.21.2", features = ["macros", "rt"] } tower = { version = "0.4.13", features = ["util"] } [features] -default = [] axum = ["dep:axum"] native-roots = ["dep:rustls-native-certs"] webpki-roots = ["dep:webpki-roots"] diff --git a/crates/http/src/client.rs b/crates/http/src/client.rs index 5190a28e..6aa79f31 100644 --- a/crates/http/src/client.rs +++ b/crates/http/src/client.rs @@ -84,6 +84,7 @@ async fn tls_roots() -> Result { } #[cfg(feature = "webpki-roots")] +#[allow(clippy::unused_async)] async fn tls_roots() -> Result { let mut roots = rustls::RootCertStore::empty(); roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {