This repository was archived by the owner on Jul 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (66 loc) · 2.44 KB
/
Cargo.toml
File metadata and controls
76 lines (66 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[package]
name = "robius-authentication"
version = "0.2.0"
edition = "2021"
authors = [
"Klim Tsoutsman <klim@tsoutsman.com>",
"Kevin Boos <kevinaboos@gmail.com>",
"Project Robius Maintainers",
]
description = "Rust abstractions for multi-platform native authentication: biometrics, fingerprint, password, screen lock, TouchID, FaceID, Windows Hello, etc."
documentation = "https://docs.rs/robius-authentication"
homepage = "https://robius.rs/"
keywords = ["robius", "authentication", "biometric", "password", "fingerprint"]
categories = ["os", "hardware-support", "api-bindings"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/project-robius/robius-authentication"
[build-dependencies]
android-build = "0.1.0"
[dependencies]
cfg-if = "1.0.0"
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21.1"
robius-android-env = "0.2.0"
[target.'cfg(target_vendor = "apple")'.dependencies]
block2 = "0.6.1"
objc2 = "0.6.1"
objc2-local-authentication = { version = "0.3.1", default-features = false, features = ["block2", "LAContext", "LAError"] }
objc2-foundation = { version = "0.3.1", default-features = false, features = ["NSError", "NSString"] }
## disabled for now, sync the `async` feature isn't fully implemented.
# [target.'cfg(any(target_vendor = "apple", target_os = "android"))'.dependencies.tokio]
# version = "1.35.1"
# default-features = false
# features = ["sync"]
# optional = true
[target.'cfg(target_os = "linux")'.dependencies]
polkit = "=0.17.0"
gio = "=0.17.0"
[target.'cfg(target_os = "windows")'.dependencies]
retry = "2.0.0"
windows-core = { version = "0.56.0", default-features = false }
windows = { version = "0.56.0", default-features = false, features = [
# For UWP-based authentication.
"Foundation",
"Security_Credentials_UI",
# WinRT
"Win32_UI_WindowsAndMessaging",
"Win32_System_WinRT",
# Fallback
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_NetworkManagement_NetManagement",
"Win32_Security_Authentication_Identity",
"Win32_Security_Credentials",
"Win32_UI_Input_KeyboardAndMouse",
]}
[features]
default = []
## This feature is not fully implemented yet, do not use it.
##
## Enable this feature to expose non-blocking asynchronous authentication APIs.
#async = ["dep:tokio"]
## Note: there is a UWP feature still in the code,
## but enabling it causes the app to freeze on Windows 11 Pro.
## Everything still works correctly without the UWP feature.
# uwp = []