You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Fix the default features set
This commit is contained in:
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -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| {
|
||||
|
Reference in New Issue
Block a user