-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (78 loc) · 2.38 KB
/
Copy pathCargo.toml
File metadata and controls
98 lines (78 loc) · 2.38 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
[workspace]
members = ["crates/rust-switcher-core"]
[package]
name = "rust-switcher"
version = "1.0.16"
edition = "2024"
description = "Windows keyboard layout switcher and text conversion utility"
license = "MIT"
repository = "https://github.com/qqrm/rust-switcher"
homepage = "https://github.com/qqrm/rust-switcher"
readme = "README.md"
keywords = ["windows", "winapi", "keyboard", "hotkey", "tray"]
categories = ["gui", "os::windows-apis"]
[dependencies]
rust-switcher-core = { version = "1.0.16", path = "crates/rust-switcher-core" }
serde = { version = "1.0", features = ["derive"] }
confy = "2.0"
lingua = { version = "1.8", default-features = false, features = [
"english",
"russian",
] }
tracing = { version = "0.1", features = ["release_max_level_off"] }
tracing-subscriber = { version = "0.3", features = [
"fmt",
"env-filter",
], optional = true }
tracing-appender = { version = "0.2", optional = true }
[features]
default = []
debug-tracing = ["tracing-subscriber", "tracing-appender"]
debug-binary = []
[[bin]]
name = "rust-switcher"
path = "src/main.rs"
[[bin]]
name = "rust-switcher-debug"
path = "src/main_debug.rs"
required-features = ["debug-binary"]
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62", features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
"Win32_System_SystemServices",
"Win32_System_LibraryLoader",
"Win32_Security",
"Win32_UI_Shell",
"Win32_UI_Controls",
"Win32_System_DataExchange",
"Win32_System_Memory",
"Win32_System_Diagnostics_Debug",
"Win32_System_Com",
"Win32_UI_Accessibility",
"Win32_System_SystemInformation",
"Win32_System_Ole",
"Win32_Storage_FileSystem",
"Win32_Graphics_Dwm",
] }
[build-dependencies]
embed-resource = "3.0"
[target.'cfg(windows)'.build-dependencies]
windows = { version = "0.62", features = ["Win32_System_SystemServices"] }
[profile.release]
opt-level = "z"
lto = true # full LTO (обычно меньше бинарь, но медленнее)
codegen-units = 1
panic = "abort"
strip = "symbols"
debug = 0
incremental = false
[dev-dependencies]
tracing-test = "0.2.6"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }.zip"
pkg-fmt = "zip"
bin-dir = "{ bin }{ binary-ext }"