-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
28 lines (24 loc) · 1.18 KB
/
Copy pathCargo.toml
File metadata and controls
28 lines (24 loc) · 1.18 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
[package]
name = "lowtech"
version = "0.1.0"
edition = "2021"
license = "GPL-2.0-or-later"
description = "Minimal port of Solaar's core: query Logitech HID++ devices, DPI, button presses, and onboard-profile button remapping. No UI."
[dependencies]
clap = { version = "4", features = ["derive"] }
# hidapi backend differs per OS; both statically compile the C hidapi into the
# binary (no libhidapi.* runtime dependency).
#
# macOS: bundled hidapi + IOKit; `macos-shared-device` opens non-exclusively
# (mirrors Solaar's hid_darwin_set_open_exclusive(0)). Only Apple system
# frameworks remain dynamically linked (they cannot be static on macOS).
[target.'cfg(target_os = "macos")'.dependencies]
hidapi = { version = "2", default-features = false, features = ["macos-shared-device"] }
# Linux: hidraw backend (what Solaar uses), hidapi compiled in statically.
# libudev remains a dynamic system dependency for enumeration; for a
# fully-static binary build against musl with a static udev/libusb.
[target.'cfg(target_os = "linux")'.dependencies]
hidapi = { version = "2", default-features = false, features = ["linux-static-hidraw"] }
[profile.release]
lto = true
strip = true