-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
111 lines (93 loc) · 3.73 KB
/
Copy pathCargo.toml
File metadata and controls
111 lines (93 loc) · 3.73 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
[workspace]
resolver = "2"
members = [
"crates/switcheur",
"crates/switcheur-core",
"crates/switcheur-i18n",
"crates/switcheur-platform",
"crates/switcheur-ui",
]
[workspace.package]
version = "0.1.19"
edition = "2021"
rust-version = "1.80"
authors = ["Olivier <olivier.guimbal@gmail.com>"]
license = "LicenseRef-PolyForm-Noncommercial-1.0.0"
repository = "https://github.com/oliv/leswitcheur"
[workspace.dependencies]
# Internal crates
switcheur-core = { path = "crates/switcheur-core" }
switcheur-i18n = { path = "crates/switcheur-i18n" }
switcheur-platform = { path = "crates/switcheur-platform" }
switcheur-ui = { path = "crates/switcheur-ui" }
# GPUI — Zed's UI framework. We track main HEAD without a `rev` so the source
# unifies with `gpui-component` (which also tracks HEAD). The exact SHA is
# pinned by Cargo.lock for reproducibility — bump deliberately via
# `cargo update -p gpui -p gpui_platform`.
gpui = { git = "https://github.com/zed-industries/zed" }
# `runtime_shaders` stitches Metal shaders at runtime instead of pre-compiling
# them in the build script — avoids needing the full Metal Toolchain at build time.
gpui_platform = { git = "https://github.com/zed-industries/zed", features = ["runtime_shaders", "font-kit"] }
# Pre-built UI components (Input, popovers, theme system) atop GPUI.
# Pinned to a specific rev — avoid HEAD drift, bump deliberately.
gpui-component = { git = "https://github.com/longbridge/gpui-component", rev = "d3d6e56c96659fb7516e2c743b80331af62e546d" }
# Fuzzy matcher — same engine Zed uses
nucleo-matcher = "0.3"
# Inline math evaluation (Spotlight-style calculator in the query bar)
meval = "0.2"
# Inline JavaScript evaluation via QuickJS (Fabrice Bellard's ES2023 engine)
rquickjs = { version = "0.11", default-features = false, features = ["rust-alloc"] }
# Global hotkey registration
global-hotkey = "0.6"
# macOS platform APIs
core-foundation = "0.10"
core-graphics = "0.25"
objc2 = "0.6"
objc2-app-kit = "0.3"
objc2-foundation = "0.3"
accessibility-sys = "0.1"
auto-launch = "0.6"
# CoreAudio raw FFI for per-process audio activity detection
# (kAudioHardwarePropertyProcessObjectList, kAudioProcessPropertyPID,
# kAudioProcessPropertyIsRunning — public on macOS 14.2+).
coreaudio-sys = { version = "0.2", default-features = false, features = ["core_audio"] }
# Walks helper-PID → responsible app PID via proc_pidinfo (PROC_PIDTBSDINFO).
libproc = "0.14"
# Windows API bindings (Win32 + selected WinRT). Enabled features pulled in
# per-crate so the dep tree only carries what we actually call.
windows = "0.61"
# Config + serialization
serde = { version = "1", features = ["derive"] }
toml = "0.8"
directories = "5"
regex = "1"
# Utilities
anyhow = "1"
thiserror = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
crossbeam-channel = "0.5"
async-channel = "2.5"
arc-swap = "1"
# i18n — sys-locale detects OS language, rust-i18n loads the YAML bundles.
rust-i18n = "3"
sys-locale = "0.3"
# Licensing: verify Ed25519-signed tokens issued by the web backend.
ed25519-dalek = "2"
# Used for payload envelope parsing (base64url) + HTTP activation polling.
base64 = "0.22"
ureq = { version = "2", features = ["json", "tls"] }
serde_json = "1"
open = "5"
# Semver comparison for the update checker (remote manifest vs current binary).
semver = "1"
# Tray icon (Windows + macOS NSStatusItem + Linux). Pulls a hidden window
# on Windows that piggybacks on the main thread's message pump.
tray-icon = "0.23"
# Used at runtime to decode the brand PNG into RGBA for the tray icon.
# (We already use it as a build-dep for the .exe icon.)
image = { version = "0.25", default-features = false, features = ["png"] }
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"