forked from project-robius/robius-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (76 loc) · 2.59 KB
/
Cargo.toml
File metadata and controls
90 lines (76 loc) · 2.59 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "robius-authentication"
version = "0.1.1"
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, 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"
log = "0.4.21"
robius-android-env = "0.2.0"
[target.'cfg(target_vendor = "apple")'.dependencies.block2]
version = "0.5.1"
[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_vendor = "apple")'.dependencies.objc2-local-authentication]
version = "0.2.2"
features = ["block2", "LAContext", "LAError"]
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
version = "0.2.2"
default-features = false
features = ["NSError", "NSString"]
[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.5.2"
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.polkit]
version = "=0.17.0"
[target.'cfg(target_os = "linux")'.dependencies.gio]
version = "=0.17.0"
[target.'cfg(target_os = "windows")'.dependencies.retry]
version = "2.0.0"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.56.0"
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",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-core]
version = "0.56.0"
default-features = false
[features]
default = []
## 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 = []