-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
110 lines (99 loc) · 3.87 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
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
108
109
110
[package]
name = "mundy"
description = "Reads various system-level accessibility and UI preferences"
version = "0.1.5"
edition = "2021"
license = "Apache-2.0"
exclude = ["Justfile", "_typos.toml", "notes.md", "scripts/", ".github/"]
repository = "https://github.com/bash/mundy"
keywords = ["accessibility", "contrast", "UI", "color", "accent"]
categories = ["os", "gui"]
readme = "readme.md"
[workspace.dependencies]
bevy_color = { version = "0.15.0", default-features = false }
[dependencies]
cfg-if = "1.0.0"
futures-lite = "2.3"
pin-project-lite = "0.2"
futures-channel = { version = "0.3", optional = true }
epaint = { version = "0.30.0", optional = true, default-features = false }
bevy_color = { workspace = true, optional = true }
log = { version = "0.4", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.5.2"
objc2-app-kit = { version = "0.2.2", features = ["NSApplication", "NSResponder"] }
objc2-foundation = { version = "0.2.2", features = ["NSThread", "NSObject", "NSString"] }
futures-channel = { version = "0.3", optional = true }
dispatch = { version = "0.2", optional = true }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.59.0", features = ["Win32_UI_WindowsAndMessaging", "Win32_System_Threading"] }
futures-channel = "0.3"
slab = "0.4.9"
[target.'cfg(target_os = "linux")'.dependencies]
zbus = { version = "5.0.0", default-features = false }
async-io = { version = "2.3.4", optional = true }
tokio = { version = "1.37.0", optional = true, default-features = false }
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies]
web-sys = { version = "0.3.70", features = ["MediaQueryList", "Window", "Event", "MediaQueryListEvent"] }
wasm-bindgen = "0.2.93"
futures-channel = "0.3"
wasm-bindgen-futures = "0.4"
# On Linux, we already have either async-io or tokio, so no need for beul.
# On WASM, we don't need block_on (we use spawn_local instead), so no need for beul.
[target.'cfg(not(any(target_os = "linux", all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))))'.dependencies]
beul = { version = "1.0.0", optional = true }
[features]
default = ["async-io", "callback", "_all-preferences"]
async-io = ["zbus/async-io", "dep:async-io"]
tokio = ["zbus/tokio", "dep:tokio"]
callback = ["dep:beul", "dep:futures-channel"]
color-scheme = [
"_macos-observable",
"_winrt",
"dep:dispatch",
"objc2-app-kit/NSAppearance",
"objc2-foundation/NSKeyValueObserving",
]
contrast = ["_macos-accessibility", "_winrt"]
reduced-motion = ["_macos-accessibility", "_gnome_only", "_winrt"]
reduced-transparency = ["_macos-accessibility", "_winrt"]
accent-color = [
"_macos-observable",
"_winrt",
"web-sys/Comment",
"web-sys/CssStyleDeclaration",
"web-sys/Document",
"web-sys/HtmlElement",
"web-sys/TransitionEvent",
"web-sys/css",
"objc2-app-kit/NSColorSpace",
"objc2-app-kit/NSColor",
"objc2-foundation/NSDistributedNotificationCenter",
"objc2-foundation/NSNotification",
]
double-click-interval = [
"_gnome_only",
"objc2-app-kit/NSEvent",
"windows/Win32_UI_Input_KeyboardAndMouse",
]
_all-preferences = ["color-scheme", "contrast", "reduced-motion", "reduced-transparency", "accent-color", "double-click-interval"]
_macos-accessibility = [
"_macos-observable",
"objc2-app-kit/NSWorkspace",
"objc2-app-kit/NSAccessibility",
]
_macos-observable = ["dep:futures-channel"]
_gnome_only = []
# the deprecated feature is here as a workaround for <https://github.com/microsoft/windows-rs/issues/3425>
# FIXME: remove workaround when updating windows
_winrt = ["windows/UI_ViewManagement", "windows/Win32_System_Com", "windows/deprecated"]
[workspace]
resolver = "2"
members = [
"examples/*"
]
[dev-dependencies]
static_assertions = "1.1.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]