From a8d149db16c2dfe24a92cdccb1b44a2c60d7bfa4 Mon Sep 17 00:00:00 2001 From: Firstyear Date: Fri, 13 Dec 2024 13:19:10 +1000 Subject: [PATCH] remove unused webauthn features. (#3286) While improving the webauthn feature handling yesterday I accidentally left mozilla enabled on linux which doesn't need it and u2fhid on macos. In the future the plan is to swap fully to u2fhid, but in the mean time we need mozilla for freebsd support. That's something I'll need to work on later with @micolous. --- tools/cli/Cargo.toml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tools/cli/Cargo.toml b/tools/cli/Cargo.toml index b5ac95e20..58a0b5128 100644 --- a/tools/cli/Cargo.toml +++ b/tools/cli/Cargo.toml @@ -74,29 +74,23 @@ serde_json = { workspace = true } uuid = { workspace = true } url = { workspace = true } +## See src/cli/webauthn/mod.rs for which features are +## required for which target_os here [target."cfg(target_os = \"windows\")".dependencies.webauthn-authenticator-rs] workspace = true features = ["win10"] [target."cfg(target_os = \"linux\")".dependencies.webauthn-authenticator-rs] workspace = true -features = [ - "u2fhid", - "mozilla", -] +features = ["u2fhid"] [target."cfg(target_os = \"macos\")".dependencies.webauthn-authenticator-rs] workspace = true -features = [ - "u2fhid", - "mozilla", -] +features = ["mozilla"] [target."cfg(target_os = \"freebsd\")".dependencies.webauthn-authenticator-rs] workspace = true -features = [ - "mozilla", -] +features = ["mozilla"] ## Debian packaging [package.metadata.deb]