argui-platform 0.2.0

Native platform integrations for Argui applications
Documentation
# 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.89"
name = "argui-platform"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native platform integrations for Argui applications"
homepage = "https://extrabinoss.github.io/argui/"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ExtraBinoss/argui"

[features]
default = []
desktop-backdrop = [
    "dep:argui-paint",
    "dep:x11rb",
    "dep:wayland-client",
    "dep:wayland-backend",
    "dep:wayland-protocols",
    "dep:wayland-protocols-plasma",
    "dep:objc2",
    "dep:objc2-foundation",
    "dep:objc2-quartz-core",
    "dep:objc2-core-graphics",
    "objc2-app-kit/NSView",
    "objc2-app-kit/NSWindow",
    "objc2-app-kit/NSVisualEffectView",
    "objc2-app-kit/NSAppearance",
    "objc2-app-kit/objc2-quartz-core",
    "windows/Win32_Graphics_Dwm",
    "windows/Win32_UI_Controls",
]
file-picker = [
    "dep:rfd",
    "dep:futures-channel",
]
gtk-host = [
    "dep:gtk",
    "dep:tao",
    "dep:wayland-client",
    "dep:wayland-backend",
    "dep:raw-window-handle",
]
native-popups = [
    "dep:x11rb",
    "dep:objc2",
    "objc2-app-kit/NSWindow",
    "objc2-app-kit/NSGraphics",
    "objc2-app-kit/NSView",
    "objc2-app-kit/NSScreen",
    "windows/Win32_UI_WindowsAndMessaging",
    "windows/Win32_Graphics_Gdi",
]
tray = [
    "dep:ksni",
    "dep:tray-icon",
]

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

[[test]]
name = "application"
path = "tests/application.rs"

[[test]]
name = "clipboard"
path = "tests/clipboard.rs"

[[test]]
name = "desktop_backdrop"
path = "tests/desktop_backdrop.rs"

[[test]]
name = "error"
path = "tests/error.rs"

[[test]]
name = "event"
path = "tests/event.rs"

[[test]]
name = "file_picker"
path = "tests/file_picker.rs"

[[test]]
name = "identity"
path = "tests/identity.rs"

[[test]]
name = "native_desktop_backdrop"
path = "tests/desktop_backdrop/linux.rs"
harness = false
required-features = ["desktop-backdrop"]

[[test]]
name = "native_tray"
path = "tests/native_tray.rs"

[[test]]
name = "popup"
path = "tests/popup.rs"

[[test]]
name = "preferences"
path = "tests/preferences.rs"

[[test]]
name = "tray"
path = "tests/tray.rs"

[[test]]
name = "window"
path = "tests/window.rs"

[dependencies.argui-core]
version = "0.2.0"

[dependencies.argui-paint]
version = "0.2.0"
optional = true

[dependencies.image]
version = "=0.25.10"
features = [
    "png",
    "jpeg",
]
default-features = false

[dependencies.winit]
version = "=0.30.13"

[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))'.dependencies.arboard]
version = "=3.6.1"
features = ["wayland-data-control"]
default-features = false

[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))'.dependencies.rfd]
version = "=0.17.2"
optional = true

[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies.tray-icon]
version = "=0.24.2"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-channel]
version = "=0.3.34"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "=1.0.1"

[target.'cfg(target_arch = "wasm32")'.dependencies.base64]
version = "=0.22.1"

[target.'cfg(target_arch = "wasm32")'.dependencies.rfd]
version = "=0.17.2"
optional = true

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "=0.3.104"
features = [
    "Clipboard",
    "Document",
    "Element",
    "HtmlCanvasElement",
    "HtmlHeadElement",
    "MediaQueryList",
    "Navigator",
    "Node",
    "NodeList",
    "Window",
]

[target.'cfg(target_os = "linux")'.dependencies.ashpd]
version = "=0.13.13"
features = [
    "async-io",
    "settings",
]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.futures-util]
version = "=0.3.34"

[target.'cfg(target_os = "linux")'.dependencies.gtk]
version = "=0.18.2"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.ksni]
version = "=0.3.6"
features = [
    "async-io",
    "blocking",
]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.raw-window-handle]
version = "=0.6.2"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.tao]
version = "=0.37.0"
features = ["rwh_06"]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wayland-backend]
version = "=0.3.17"
features = ["client_system"]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wayland-client]
version = "=0.31.15"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wayland-protocols]
version = "=0.32.13"
features = [
    "client",
    "staging",
]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wayland-protocols-plasma]
version = "=0.3.12"
features = ["client"]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.x11rb]
version = "=0.13.2"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "=0.6.4"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "=0.3.2"
features = [
    "NSAccessibility",
    "NSWorkspace",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "=0.3.2"
features = [
    "std",
    "CGGeometry",
    "CGPath",
]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "=0.3.2"
features = [
    "std",
    "NSGeometry",
    "objc2-core-foundation",
]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-quartz-core]
version = "=0.3.2"
features = [
    "std",
    "CALayer",
    "CAShapeLayer",
    "objc2-core-graphics",
    "objc2-core-foundation",
]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "=0.62.2"
features = ["UI_ViewManagement"]

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage_nightly)"]