mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Feature gate more dependencies
Wayland backend is self contained and only requires smithay-client-toolkit to work, thus feature gate the rest of the deps that are only for X11.
This commit is contained in:
parent
96809ac659
commit
ee3996cac6
22
Cargo.toml
22
Cargo.toml
|
@ -20,7 +20,7 @@ targets = ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-unknown-linux
|
||||||
default = ["x11", "wayland"]
|
default = ["x11", "wayland"]
|
||||||
web-sys = ["web_sys", "wasm-bindgen", "instant/wasm-bindgen"]
|
web-sys = ["web_sys", "wasm-bindgen", "instant/wasm-bindgen"]
|
||||||
stdweb = ["std_web", "instant/stdweb"]
|
stdweb = ["std_web", "instant/stdweb"]
|
||||||
x11 = ["x11-dl"]
|
x11 = ["x11-dl", "mio", "mio-extras", "percent-encoding", "parking_lot"]
|
||||||
wayland = ["wayland-client", "sctk"]
|
wayland = ["wayland-client", "sctk"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -41,21 +41,23 @@ ndk = "0.2.0"
|
||||||
ndk-sys = "0.2.0"
|
ndk-sys = "0.2.0"
|
||||||
ndk-glue = "0.2.0"
|
ndk-glue = "0.2.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "ios")'.dependencies]
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
|
||||||
objc = "0.2.3"
|
objc = "0.2.7"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
cocoa = "0.23"
|
cocoa = "0.24"
|
||||||
core-foundation = "0.9"
|
core-foundation = "0.9"
|
||||||
core-graphics = "0.22"
|
core-graphics = "0.22"
|
||||||
dispatch = "0.2.0"
|
dispatch = "0.2.0"
|
||||||
objc = "0.2.6"
|
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies.core-video-sys]
|
[target.'cfg(target_os = "macos")'.dependencies.core-video-sys]
|
||||||
version = "0.1.4"
|
version = "0.1.4"
|
||||||
default_features = false
|
default_features = false
|
||||||
features = ["display_link"]
|
features = ["display_link"]
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
|
parking_lot = "0.11"
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
||||||
version = "0.3.6"
|
version = "0.3.6"
|
||||||
features = [
|
features = [
|
||||||
|
@ -83,13 +85,11 @@ features = [
|
||||||
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
||||||
wayland-client = { version = "0.28", features = [ "dlopen"] , optional = true }
|
wayland-client = { version = "0.28", features = [ "dlopen"] , optional = true }
|
||||||
sctk = { package = "smithay-client-toolkit", version = "0.12", optional = true }
|
sctk = { package = "smithay-client-toolkit", version = "0.12", optional = true }
|
||||||
mio = "0.6"
|
mio = { version = "0.6", optional = true }
|
||||||
mio-extras = "2.0"
|
mio-extras = { version = "2.0", optional = true }
|
||||||
x11-dl = { version = "2.18.5", optional = true }
|
x11-dl = { version = "2.18.5", optional = true }
|
||||||
percent-encoding = "2.0"
|
percent-encoding = { version = "2.0", optional = true }
|
||||||
|
parking_lot = { version = "0.11.0", optional = true }
|
||||||
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "windows"))'.dependencies.parking_lot]
|
|
||||||
version = "0.11"
|
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
|
||||||
package = "web-sys"
|
package = "web-sys"
|
||||||
|
|
Loading…
Reference in a new issue