# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "app-surface"
version = "1.12.0"
authors = ["jinleili"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Integrate wgpu into your existing iOS, Android and Web apps without relying on winit."
readme = false
keywords = [
    "android",
    "SurfaceView",
    "CAMetalLayer",
    "Canvas",
    "wgpu",
]
license = "MIT"
repository = "https://github.com/jinleili/wgpu-in-app"

[features]
cargo-clippy = []
default = ["winit"]
mac_catalyst = []
web_rwh = []
webgl = ["wgpu/webgl"]
winit = ["dep:winit"]

[lib]
name = "app_surface"
path = "src/lib.rs"

[dependencies.glam]
version = "0.32"
features = ["bytemuck"]

[dependencies.log]
version = "0.4"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.web-sys]
version = "0.3"
features = [
    "Document",
    "Window",
    "Location",
    "HtmlCanvasElement",
    "OffscreenCanvas",
]
optional = true
default-features = false

[dependencies.wgpu]
version = "29"

[dependencies.winit]
version = "0.30"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-lite]
version = "2"

[target.'cfg(target_arch = "wasm32")'.dependencies.raw-window-handle]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
default-features = false

[target.'cfg(target_os = "android")'.dependencies.android_logger]
version = "0.15"

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.21"

[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
version = "0.6"

[target.'cfg(target_os = "android")'.dependencies.raw-window-handle]
version = "0.6"

[target.'cfg(target_vendor = "apple")'.dependencies.env_logger]
version = "0.11"

[target.'cfg(target_vendor = "apple")'.dependencies.libc]
version = "0.2"
default-features = false

[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.6"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-core-foundation]
version = "0.3"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
version = "0.3"

[target.'cfg(target_vendor = "apple")'.dependencies.raw-window-handle]
version = "0.6"
