Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (49 loc) · 1.84 KB
/
Copy pathCargo.toml
File metadata and controls
57 lines (49 loc) · 1.84 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
[workspace]
members = ["vision", "daemon", "pam", "agent", "gui"]
resolver = "3"
[workspace.package]
version = "3.0.0"
edition = "2024"
license = "GPL-3.0-or-later"
repository = "https://github.com/LoonixTools/face-unlock"
# The command line and what every other part shares: paths, settings files,
# translations, the way to the daemon, the PAM files.
[package]
name = "face-unlock"
description = "Face ID for Linux: the lock screen, sudo and admin prompts"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
[lib]
name = "face_unlock"
path = "src/lib.rs"
[[bin]]
name = "face-unlock"
path = "src/main.rs"
[dependencies]
libc = "0.2"
serde_json = "1"
[profile.release]
strip = true
lto = "thin"
# The networks run on every frame. Unoptimized they are ten times slower,
# which makes a debug daemon useless for trying things out.
[profile.dev.package.tract-core]
opt-level = 3
[profile.dev.package.tract-linalg]
opt-level = 3
[profile.dev.package.tract-onnx]
opt-level = 3
[profile.dev.package.tract-hir]
opt-level = 3
[profile.dev.package.face-unlock-vision]
opt-level = 3
# Rune patches these crates in its own workspace, and a dependency's [patch]
# never reaches the workspace that uses it. Same rev as rune in gui/Cargo.toml.
[patch.crates-io]
winit = { git = "https://github.com/anomalyco/rune.git", rev = "958743308f36fdf1c568c513badc96ddb0c7f040" }
parley_engine = { git = "https://github.com/anomalyco/rune.git", rev = "958743308f36fdf1c568c513badc96ddb0c7f040" }
wgpu-hal = { git = "https://github.com/anomalyco/rune.git", rev = "958743308f36fdf1c568c513badc96ddb0c7f040" }
accesskit_windows = { git = "https://github.com/anomalyco/rune.git", rev = "958743308f36fdf1c568c513badc96ddb0c7f040" }
accesskit_macos = { git = "https://github.com/anomalyco/rune.git", rev = "958743308f36fdf1c568c513badc96ddb0c7f040" }