Skip to content

Commit bb17d44

Browse files
authored
fix!: Make accesskit_android an optional dependency of accesskit_winit (#524)
1 parent bcc70d9 commit bb17d44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platforms/winit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ accesskit_macos = { version = "0.19.0", path = "../macos" }
3434
accesskit_unix = { version = "0.14.0", path = "../unix", optional = true, default-features = false }
3535

3636
[target.'cfg(target_os = "android")'.dependencies]
37-
accesskit_android = { version = "0.1.0", path = "../android", features = ["embedded-dex"] }
37+
accesskit_android = { version = "0.1.0", path = "../android", optional = true, features = ["embedded-dex"] }
3838

3939
[dev-dependencies.winit]
4040
version = "0.30.5"

platforms/winit/src/platform_impl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mod platform;
2727
#[path = "unix.rs"]
2828
mod platform;
2929

30-
#[cfg(target_os = "android")]
30+
#[cfg(all(feature = "accesskit_android", target_os = "android"))]
3131
#[path = "android.rs"]
3232
mod platform;
3333

@@ -44,7 +44,7 @@ mod platform;
4444
target_os = "openbsd"
4545
)
4646
),
47-
target_os = "android"
47+
all(feature = "accesskit_android", target_os = "android")
4848
)))]
4949
#[path = "null.rs"]
5050
mod platform;

0 commit comments

Comments
 (0)