[package]
edition = "2024"
name = "waterkit-screen"
version = "0.1.1"
authors = ["Lexo Liu"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Screen capture with wgpu texture output"
readme = "README.md"
keywords = [
"screen",
"display",
"capture",
"gpu",
"wgpu",
]
categories = [
"os",
"gui",
"multimedia",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/water-rs/waterkit"
resolver = "2"
[lib]
name = "waterkit_screen"
path = "src/lib.rs"
[[example]]
name = "demo"
path = "examples/demo.rs"
[[example]]
name = "screenshot"
path = "examples/screenshot.rs"
[[example]]
name = "stream_preview"
path = "examples/stream_preview.rs"
[dependencies.async-channel]
version = "2.5"
[dependencies.blocking]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1.44"
[dependencies.waterkit-core]
version = "0.1.1"
[dependencies.wgpu]
version = "29.0.4"
[dev-dependencies.pollster]
version = "1.0"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"full",
]
[build-dependencies.waterkit-build]
version = "0.1.1"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.core-foundation]
version = "0.10"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.objc2]
version = "0.6"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.objc2-foundation]
version = "0.3"
features = ["NSObject"]
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.objc2-io-surface]
version = "0.3"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.swift-bridge]
version = "0.1"
[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))'.dependencies.xcap]
version = "0.9.8"
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies.brightness]
version = "0.8"
default-features = false
[target.'cfg(not(target_os = "android"))'.dev-dependencies.winit]
version = "0.30"
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"
[target.'cfg(target_os = "android")'.dependencies.ndk-context]
version = "0.1"
[target.'cfg(target_os = "android")'.dependencies.waterkit-build]
version = "0.1.1"
[target.'cfg(target_os = "linux")'.dependencies.wayland-sys]
version = "0.31.11"
features = ["dlopen"]
[lints.clippy]
multiple_crate_versions = "allow"
unused_async_trait_impl = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"