Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
165 lines (155 loc) · 7.47 KB
/
Copy pathCargo.toml
File metadata and controls
165 lines (155 loc) · 7.47 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[workspace]
resolver = "3"
members = [
"crates/openlogi",
"crates/openlogi-core",
"crates/openlogi-device-registry",
"crates/openlogi-fixture",
"crates/openlogi-inject",
"crates/openlogi-hidpp",
"crates/openlogi-hidpp-derive",
"crates/openlogi-hid",
"crates/openlogi-device",
"crates/openlogi-camera",
"crates/openlogi-permissions",
"crates/openlogi-assets",
"crates/openlogi-cli",
"crates/openlogi-ipc",
"crates/openlogi-agent-core",
"crates/openlogi-agent",
"crates/openlogi-desktop",
"crates/openlogi-ui",
"crates/openlogi-overlay",
"crates/openlogi-hook",
"xtask",
]
# The CLI used to be the root package, so a bare `cargo build` / `cargo run`
# built it alone. Keep that: without this, a virtual workspace defaults to every
# member, dragging GPUI's Metal shader toolchain into the simplest build there is.
default-members = ["crates/openlogi"]
[workspace.package]
version = "0.8.13"
edition = "2024"
# Tracks current stable rather than trailing it. OpenLogi ships as an app —
# prebuilt installers, and no crate here has an external reverse dependency —
# so a floor below stable buys nobody compatibility and only costs us APIs.
# Raise this freely the day a release lands something worth using; the `msrv`
# CI matrix keeps the number honest for `cargo install`.
rust-version = "1.98"
license = "MIT OR Apache-2.0"
repository = "https://github.com/AprilNEA/OpenLogi"
authors = ["AprilNEA <dev@aprilnea.me>"]
description = "Lightweight, local-first alternative to Logitech Options+ for HID++ devices"
[workspace.dependencies]
hidpp = { package = "openlogi-hidpp", path = "crates/openlogi-hidpp", version = "0.8.13" }
openlogi-device-registry = { path = "crates/openlogi-device-registry", version = "0.8.13" }
openlogi-fixture = { path = "crates/openlogi-fixture", version = "0.8.13" }
async-hid = { package = "openlogi-async-hid", version = "=0.5.3-openlogi.1" }
interprocess = { version = "2", features = ["tokio"] }
# The agent <-> GUI RPC layer itself, over the `interprocess` transport above.
# 0.38 is a hard floor: earlier releases hard-depend on opentelemetry 0.30 (not
# feature-gated — google/tarpc#564), which drags the vulnerable
# opentelemetry_sdk 0.30 into the graph (GHSA-w9wp-h8wv-79jx).
tarpc = { version = "0.38", features = ["serde1", "serde-transport", "serde-transport-bincode", "tokio1"] }
windows-sys = "0.61"
tokio = { version = "1", default-features = false, features = ["rt", "macros", "sync", "time"] }
futures-lite = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
ureq = { version = "3", default-features = false, features = ["rustls", "platform-verifier", "json"] }
sha2 = "0.10"
atomic-write-file = "0.3.0"
backon = { version = "1.6", default-features = false, features = ["std", "std-blocking-sleep"] }
clap = { version = "4", features = ["derive", "env"] }
anyhow = "1"
thiserror = "2"
num_enum = "0.7.3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "env-filter"] }
core-graphics = { version = "0.25", default-features = false, features = ["link"] }
core-foundation = { version = "0.10", default-features = false, features = ["link"] }
opener = "0.8.5"
shellexpand = "3.1.2"
evdev = "0.13"
# Kept on one version across the workspace (block2 included) so a resolve can't
# move gpui's Cargo.lock pin out from under the GUI.
objc2 = "0.6.4"
objc2-app-kit = "0.3.2"
objc2-foundation = "0.3.2"
objc2-core-foundation = { version = "0.3.2", default-features = false }
objc2-application-services = { version = "0.3.2", default-features = false }
objc2-core-graphics = { version = "0.3.2", default-features = false }
objc2-io-kit = { version = "0.3.2", default-features = false }
objc2-service-management = { version = "0.3.2", default-features = false }
objc2-security = { version = "0.3.2", default-features = false }
block2 = "0.6.2"
dispatch2 = "0.3.1"
# The macOS privacy-grant notifications the hook's probe cue and the agent's
# grant watchers wake on; compiles to a heartbeat-only watch elsewhere.
axwatch = "0.1"
# Version-aligned GPUI snapshots. Keep the core and platform on one release so
# the desktop, overlay, and their integrations share the same GPUI types.
gpui = { package = "gpui-pre", version = "=0.3.4" }
gpui_platform = { package = "gpui-pre-platform", version = "=0.3.4", features = ["font-kit", "x11", "wayland"] }
# Keep the Kit crates on one release checkout: build.rs embeds the upstream
# themes, which are not included in the published component/assets packages.
gpui-component = { git = "https://github.com/longbridge/gpui-kit", tag = "v0.6.1" }
# The unstyled interaction primitives behind gpui-component. Desktop uses its
# semantic Button for custom-painted controls that must retain native keyboard
# and accessibility behavior without inheriting widget chrome.
gpui-base = { git = "https://github.com/longbridge/gpui-kit", tag = "v0.6.1" }
# The icon names and embedded SVGs must agree with the component release.
gpui-kit-assets = { git = "https://github.com/longbridge/gpui-kit", tag = "v0.6.1" }
swr-core = "0.1"
swr-gpui = { package = "swr-gpui-pre", version = "0.1" }
# Backport GroupBox/SettingGroup::footer to v0.6.1 without upgrading GPUI.
# Remove when adopting an upstream release with the footer API. Keep all Kit
# crates on this revision, including the theme source in packaging/linux/package.nix.
[patch."https://github.com/longbridge/gpui-kit"]
gpui-component = { git = "https://github.com/AprilNEA/gpui-kit", rev = "1ac69bd51f744f3664361d9abd609bfc16de489f" }
gpui-base = { git = "https://github.com/AprilNEA/gpui-kit", rev = "1ac69bd51f744f3664361d9abd609bfc16de489f" }
gpui-kit-assets = { git = "https://github.com/AprilNEA/gpui-kit", rev = "1ac69bd51f744f3664361d9abd609bfc16de489f" }
gpui-component-macros = { git = "https://github.com/AprilNEA/gpui-kit", rev = "1ac69bd51f744f3664361d9abd609bfc16de489f" }
[workspace.lints.rust]
# Denied workspace-wide, but `deny` (not `forbid`) so a crate that genuinely
# needs FFI can opt in locally with `#[expect(unsafe_code, reason = "…")]`.
unsafe_code = "deny"
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
unwrap_used = "warn"
expect_used = "warn"
missing_errors_doc = "allow"
doc_markdown = "allow"
# Pedantic since clippy 1.99. Its rewrite, `assert_eq!(v, [] as [T; 0])`, prints
# the leftover on failure, but the cast and the `Debug + PartialEq` bound on every
# element type cost the tests more than that message is worth.
assert_is_empty = "allow"
# Machine-checks the suppression policy in .claude/rules/rust.md: every
# suppression states a reason, and reaches for `expect` unless it cannot work.
# Blind spot worth knowing: `allow_attributes` only sees outer `#[allow]`, so a
# module-wide `#![allow(…)]` — the shape that rots worst — still needs review.
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
# Shared lint set, kept in sync with
# https://gist.github.com/AprilNEA/cdf81f76840fcb883a32503ee7caa539.
# `cast_*` and `ptr_as_ptr` are pedantic members already; they are listed
# explicitly so the set stands on its own if the pedantic group ever moves.
assertions_on_result_states = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
error_impl_error = "warn"
exit = "warn"
or_fun_call = "warn"
ptr_as_ptr = "warn"
tests_outside_test_module = "warn"
undocumented_unsafe_blocks = "warn"
[profile.dev]
debug = "limited"
[profile.dev.package."*"]
debug = false
[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"