File: disable-gui.patch

package info (click to toggle)
rust-kanata 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,832 kB
  • sloc: makefile: 4
file content (46 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download | duplicates (3)
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
From: Agathe Porte <gagath@debian.org>
Subject: [PATCH] disable gui feature

Due to the very sensitive nature of kanata we want to reduce the attack surface
to a minimum. Disable the gui feature.

Forwarded: not-needed
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,26 +40,6 @@
     "win_sendinput_send_scancodes",
     "zippychord",
 ]
-gui = [
-    "win_manifest",
-    "kanata-parser/gui",
-    "win_sendinput_send_scancodes",
-    "win_llhook_read_scancodes",
-    "muldiv",
-    "strip-ansi-escapes",
-    "open",
-    "dep:windows-sys",
-    "winapi/processthreadsapi",
-    "native-windows-gui/tray-notification",
-    "native-windows-gui/message-window",
-    "native-windows-gui/menu",
-    "native-windows-gui/cursor",
-    "native-windows-gui/high-dpi",
-    "native-windows-gui/embed-resource",
-    "native-windows-gui/image-decoder",
-    "native-windows-gui/notice",
-    "native-windows-gui/animation-timer",
-]
 interception_driver = [
     "kanata-interception",
     "kanata-parser/interception_driver",
@@ -184,9 +164,6 @@
 [target.'cfg(target_os = "linux")'.dependencies.signal-hook]
 version = "0.3.14"
 
-[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
-version = "0.24.0"
-
 [target.'cfg(target_os = "macos")'.dependencies.karabiner-driverkit]
 version = "0.1.5"