-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (93 loc) · 2.76 KB
/
Copy pathCargo.toml
File metadata and controls
107 lines (93 loc) · 2.76 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
[package]
name = "sss_capture"
description = "From-scratch cross-platform screen / window / region capture for Super ScreenShot"
version = "0.2.1"
authors.workspace = true
repository.workspace = true
homepage.workspace = true
edition.workspace = true
license.workspace = true
keywords = ["screen", "monitor", "window", "capture", "image"]
# Library crate — bumps version + commit via cargo-release, but never tags.
# Only sss_cli + sss_code emit tags (those drive the Release workflow).
[package.metadata.release]
tag = false
[features]
default = []
# Force every public symbol to be available unconditionally; if a backend
# isn't compiled in for the current target, calls return `Unsupported`.
unsupported-stubs = []
[dependencies]
thiserror.workspace = true
tracing.workspace = true
image = "0.25"
[target.'cfg(target_os = "linux")'.dependencies]
# Pure-Rust X11 client. No libxcb runtime dependency.
x11rb = { version = "0.13", default-features = false, features = [
"allow-unsafe-code",
"randr",
"xfixes",
"shm",
"composite",
] }
wayland-client = "0.31"
wayland-protocols = { version = "0.32", features = [
"unstable",
"staging",
"client",
] }
wayland-protocols-wlr = { version = "0.3", features = ["client"] }
memmap2 = "0.9"
rustix = { version = "1", features = ["fs", "mm", "shm", "event"] }
nix = { version = "0.31", default-features = false, features = ["fs", "mman"] }
dbus = { version = "0.9", features = ["vendored"] }
url = "2"
percent-encoding = "2"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.62", features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_Graphics_Dwm",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_UI_HiDpi",
"Win32_UI_WindowsAndMessaging",
"Win32_Storage_Xps",
"Win32_System_Threading",
"Win32_System_LibraryLoader",
"Win32_System_DataExchange",
"Win32_System_Ole",
"Win32_System_Memory",
] }
[target.'cfg(target_os = "macos")'.dependencies]
core-graphics = "0.25"
core-foundation = "0.10"
objc2 = "0.6"
objc2-foundation = "0.3"
objc2-app-kit = { version = "0.3", features = ["NSScreen", "NSEvent"] }
[[example]]
name = "list_monitors"
path = "examples/list_monitors.rs"
[[example]]
name = "list_windows"
path = "examples/list_windows.rs"
[[example]]
name = "capture_all"
path = "examples/capture_all.rs"
[[example]]
name = "capture_primary"
path = "examples/capture_primary.rs"
[[example]]
name = "capture_at_cursor"
path = "examples/capture_at_cursor.rs"
[[example]]
name = "capture_region"
path = "examples/capture_region.rs"
[[example]]
name = "capture_window"
path = "examples/capture_window.rs"
[[example]]
name = "select_backend"
path = "examples/select_backend.rs"