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