forked from AprilNEA/OpenLogi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (54 loc) · 2.39 KB
/
Copy pathCargo.toml
File metadata and controls
60 lines (54 loc) · 2.39 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
[package]
name = "openlogi-agent"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
description = "OpenLogi background agent — headless, always-on owner of the input hook, HID++ device I/O, and (later) the menu-bar tray."
# Distributed as a login-item helper inside the bundled .app; never published.
publish = false
[[bin]]
name = "openlogi-agent"
path = "src/main.rs"
[dependencies]
openlogi-agent-core = { path = "../openlogi-agent-core" }
openlogi-core = { path = "../openlogi-core" }
openlogi-hid = { path = "../openlogi-hid" }
openlogi-hook = { path = "../openlogi-hook" }
tarpc = { workspace = true }
interprocess = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "net", "io-util"] }
futures = "0.3"
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
sysinfo = { version = "0.38.4", default-features = false, features = ["system"] }
opener = { workspace = true }
# Windows exe resources (app icon + VERSIONINFO) — see build.rs. The exact
# version already in Cargo.lock as gpui's own build-dependency, so the resolve
# adds an edge, not a crate, and the pinned gpui rev cannot move.
[build-dependencies]
embed-resource = "3.0.9"
# Menu-bar status item (NSStatusItem) — the agent hosts the tray now. objc2
# gives Retained<T>-owned AppKit bindings (no #99-style leaks); versions match
# the GUI's so the resolve doesn't move the gpui Cargo.lock pin.
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = { workspace = true }
objc2-app-kit = { workspace = true, features = ["NSStatusBar", "NSStatusItem", "NSStatusBarButton", "NSButton", "NSControl", "NSResponder", "NSView", "NSMenu", "NSMenuItem", "NSImage", "NSApplication", "NSRunningApplication"] }
objc2-foundation = { workspace = true, features = ["NSString", "NSData", "NSArray"] }
plist = "1.9.0"
# Autostart via the HKCU Run key (launch_agent.rs); winreg also answers the
# taskbar light/dark theme read for the tray glyph (tray_windows.rs). The
# notification-area icon itself is raw win32 via the workspace windows-sys.
[target.'cfg(target_os = "windows")'.dependencies]
winreg = "0.55"
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
[lints]
workspace = true