1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Fix the default features set

This commit is contained in:
Quentin Gliech
2022-11-03 14:43:07 +01:00
parent 041eb7013c
commit 9756f3c704
4 changed files with 1 additions and 4 deletions

View File

@ -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"]

View File

@ -84,6 +84,7 @@ async fn tls_roots() -> Result<rustls::RootCertStore, NativeRootsInitError> {
}
#[cfg(feature = "webpki-roots")]
#[allow(clippy::unused_async)]
async fn tls_roots() -> Result<rustls::RootCertStore, Infallible> {
let mut roots = rustls::RootCertStore::empty();
roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {