make accesskit_unix optional again (#9074)

# Objective

- accesskit_unix is not optional anymore

## Solution

- Enable `async-io` feature of `accesskit_winit` only when
`accesskit_unix` is enabled
This commit is contained in:
François 2023-07-09 00:31:30 +02:00 committed by GitHub
parent fb4c21e3e6
commit a1feab939a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ keywords = ["bevy"]
trace = []
wayland = ["winit/wayland", "winit/wayland-csd-adwaita"]
x11 = ["winit/x11"]
accesskit_unix = ["accesskit_winit/accesskit_unix"]
accesskit_unix = ["accesskit_winit/accesskit_unix", "accesskit_winit/async-io"]
[dependencies]
# bevy
@ -29,7 +29,7 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.11.0-dev" }
# other
winit = { version = "0.28", default-features = false }
accesskit_winit = { version = "0.14", default-features = false, features = ["async-io"] }
accesskit_winit = { version = "0.14", default-features = false }
approx = { version = "0.5", default-features = false }
raw-window-handle = "0.5"