From bf5920caa7d1f365b4101ed0c6747dc9c59b5abb Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 19 May 2023 12:15:48 -0300 Subject: [PATCH] fix authenticator --- plugins/authenticator/Cargo.toml | 2 ++ plugins/authenticator/src/lib.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/authenticator/Cargo.toml b/plugins/authenticator/Cargo.toml index 7ee8fb22..c3ca03ca 100644 --- a/plugins/authenticator/Cargo.toml +++ b/plugins/authenticator/Cargo.toml @@ -15,6 +15,8 @@ serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } + +[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies] authenticator = "0.3.1" once_cell = "1" sha2 = "0.10" diff --git a/plugins/authenticator/src/lib.rs b/plugins/authenticator/src/lib.rs index ef889e21..e1b488e0 100644 --- a/plugins/authenticator/src/lib.rs +++ b/plugins/authenticator/src/lib.rs @@ -2,6 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +#![cfg(not(any(target_os = "android", target_os = "ios")))] + mod auth; mod error; mod u2f;