/
Cargo.toml
58 lines (51 loc) · 1.73 KB
/
Cargo.toml
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
[package]
edition = "2021"
name = "x-win"
version = "1.6.0"
authors = ["BENKHADRA Hocine <miniben90@hotmail.com>"]
keywords = ["window", "active", "current", "position", "title", "list", "open"]
description = "This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows."
repository = "https://github.com/miniben-90/x-win"
[lib]
crate-type = ["cdylib"]
[dependencies]
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.16.6", default-features = false, features = ["napi4", "async"] }
napi-derive = "2.16.5"
once_cell = "1.19.0"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.56.0", features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
"Win32_Storage_FileSystem",
"Win32_System_ProcessStatus",
"Win32_System_StationsAndDesktops",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_Graphics_Dwm",
"UI_UIAutomation",
"Win32_System_Com",
"Win32_UI_Accessibility",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Ole",
"Win32_UI_Shell_PropertiesSystem",
"Win32_UI_Shell_Common",
"Win32_System_Variant"
]}
[target.'cfg(target_os = "linux")'.dependencies]
xcb = { version = "1.4.0" }
x11 = { version = "2.21.0", features = ["xlib"], optional = true }
zbus = { version = "1.9.2" }
serde_json = { version = "1.0.117" }
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25.0"
libc = "0.2.155"
cocoa-foundation = "0.1.2"
core-foundation = "0.9.4"
core-foundation-sys = "0.8.6"
core-graphics = "0.23.2"
objc = "0.2.7"
[build-dependencies]
napi-build = "2.1.3"
[profile.release]
lto = true