# 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"
name = "repose-platform"
version = "0.14.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform runners (winit Desktop, Android and Web)"
readme = false
license = "LGPL-2.1-or-later"
resolver = "2"

[features]
android = [
    "winit/android-native-activity",
    "repose-render-wgpu",
]
desktop = [
    "winit",
    "repose-render-wgpu",
]
web = ["repose-render-wgpu"]

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

[dependencies.accesskit]
version = "0.22"

[dependencies.accesskit_winit]
version = "0.30"

[dependencies.anyhow]
version = "1"

[dependencies.clipawl]
version = "0.2.1"
features = [
    "linux-wayland",
    "linux-x11",
]

[dependencies.log]
version = "0.4"

[dependencies.pollster]
version = "0.4.0"

[dependencies.repose-core]
version = "0.14.1"

[dependencies.repose-devtools]
version = "0.14.1"

[dependencies.repose-navigation]
version = "0.14.1"

[dependencies.repose-render-wgpu]
version = "0.14.1"
optional = true

[dependencies.repose-ui]
version = "0.14.1"

[dependencies.rustc-hash]
version = "2.1"

[dependencies.web-time]
version = "1"

[dependencies.winit]
version = "0.30"
optional = true
default-features = true

[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"

[target.'cfg(target_arch = "wasm32")'.dependencies.console_log]
version = "1.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3.4"
features = ["wasm_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.log]
version = "0.4"

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Document",
    "Window",
    "Element",
    "HtmlElement",
    "HtmlCanvasElement",
    "CssStyleDeclaration",
    "DragEvent",
    "DataTransfer",
    "FileList",
    "File",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.wgpu]
version = "29"

[target.'cfg(target_arch = "wasm32")'.dependencies.winit]
version = "0.30"
features = ["rwh_05"]
default-features = true
