-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
43 lines (35 loc) · 882 Bytes
/
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
[package]
name = "libscreenshot"
version = "0.3.1"
edition = "2021"
[features]
default = ["windows", "linux", "macos"]
# Windows
windows_graphics_capture = []
windows_gdi = []
windows = [
"windows_graphics_capture",
"windows_gdi"
]
# Linux
linux_xorg = []
linux_wayland = []
linux = [
"linux_xorg",
"linux_wayland"
]
# macOS
macos = []
[dependencies]
thiserror = "1"
image = "0.24"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.48", features = ["Win32_UI_WindowsAndMessaging", "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Storage_Xps"] }
[target.'cfg(target_os = "linux")'.dependencies]
x11 = { version = "2.21", features = ["xlib", "xrandr"] }
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25"
core-graphics = "0.23"
core-foundation = "0.9"
foreign-types = "0.5"
macos-bindings = { path = "./macos-bindings" }