[package]
name = "app_input"
version = "0.1.0"
authors = ["Drew Crawford <drew@sealedabstract.com>"]
edition = "2021"
description = "Cross-platform mouse and keyboard input"
homepage = "https://sealedabstract.com/code/app_input"
repository = "https://github.com/drewcrawford/app_input"
keywords = ["mouse","keyboard","input"]
categories = ["gui","hardware-support","os","wasm"]
license = "MPL-2.0"
exclude = [".*"]
rust-version = "1.79.0"
[dependencies]
logwise = "0.2.2"
atomic_float = "1.1.0"
raw-window-handle = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies]
swift-rs = "1.0.7"
[target.'cfg(target_os = "macos")'.build-dependencies]
swift-rs = { version = "1.0.7", features = ["build"] }
[target.'cfg(target_os = "windows")'.dependencies]
windows = {version = "0.58.0", features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_System_LibraryLoader",
"Win32_Graphics_Gdi",
"Win32_UI_Input_KeyboardAndMouse",
]}
[target.'cfg(target_os = "linux")'.dependencies]
wayland-client = "0.31.7"
wayland-protocols = {version = "0.32.5", features = ["client"]}
tempfile = "3.14.0"
memmap2 = "0.9.5"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.99"
web-sys = { version = "0.3.76", features=["KeyboardEvent","Window","Document","MouseEvent","WheelEvent"] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
console_error_panic_hook = "0.1.7"
[[example]]
name = "main"
[example.main.target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
[dev-dependencies]