[package]
name = "winit_surface_window"
version = "0.2.0"
edition = "2021"
build = "build.rs"
description = "A helper library to use existing Android Surfaces (like Presentations) as windows within the Rust ecosystem, compatible with raw-window-handle."
license = "MIT OR Apache-2.0"
keywords = ["android", "winit", "surface", "window", "presentation"]
[target.'cfg(target_os = "android")'.dependencies]
log = "0.4"
jni = "0.21"
ndk = { version = "0.8" }
ndk-sys = "0.4.0"
raw-window-handle = "0.6.0"
once_cell = "1.19"
parking_lot = "0.12"
thiserror = "1.0"
android_logger = "0.13"
android-activity = { version = "0.6.0", optional = true }
winit = { version = "0.30", optional = true }
glutin = { version = "0.32.1", features = ["egl"], optional = true }
gl = { version = "0.14", optional = true }
skia-safe = { version = "0.82", features = ["gl"], optional = true }
anyhow = { version = "1.0", optional = true }
[features]
default = []
skia-renderer = ["dep:glutin", "dep:gl", "dep:skia-safe"]
gl-renderer = ["dep:glutin", "dep:gl", "dep:anyhow"]
android-activity = ["dep:android-activity"]
winit-integration = ["dep:winit"]