[package]
edition = "2021"
rust-version = "1.70"
name = "tauri-plugin-widgets"
version = "0.4.3"
authors = ["s00d"]
build = "build.rs"
links = "tauri-plugin-widgets"
exclude = [
"/examples",
"/dist-js",
"/guest-js",
"/node_modules",
"demo.gif",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tauri plugin for App Widgets on Android, iOS, and macOS (WidgetKit); Windows Widgets Board (Adaptive Cards) + desktop webview; Linux desktop webview with X11 DESKTOP pin."
readme = "README.md"
license = "MIT"
repository = "https://github.com/s00d/tauri-plugin-widgets"
[package.metadata.docs.rs]
features = [
"schema",
"rasterize",
"codegen",
"workerw",
"macos-private-api",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[package.metadata.platforms.support.android]
level = "full"
notes = "Full AppWidgetManager + SharedPreferences support"
[package.metadata.platforms.support.ios]
level = "full"
notes = "WidgetKit (iOS 17+) + App Groups shared container"
[package.metadata.platforms.support.macos]
level = "full"
notes = "WidgetKit (macOS 14+) + App Groups shared container"
[package.metadata.platforms.support.windows]
level = "partial"
notes = "Widgets Board Adaptive Cards + desktop webview fallback; optional workerw wallpaper"
[package.metadata.platforms.support.linux]
level = "partial"
notes = "Desktop webview + X11 _NET_WM_WINDOW_TYPE_DESKTOP; optional gtk-layer-shell on Wayland"
[features]
codegen = ["schema"]
default = ["linux"]
layer-shell = [
"linux",
"dep:gtk-layer-shell",
]
linux = [
"dep:x11rb",
"dep:raw-window-handle",
"dep:gtk",
]
macos-private-api = ["tauri/macos-private-api"]
rasterize = [
"dep:resvg",
"dep:base64",
]
schema = ["dep:schemars"]
workerw = []
[lib]
name = "tauri_plugin_widgets"
path = "src/lib.rs"
[[bin]]
name = "gen-adaptive-snapshots"
path = "src/bin/gen_adaptive_snapshots.rs"
[[bin]]
name = "gen-schema"
path = "src/bin/gen_schema.rs"
required-features = ["codegen"]
[[bin]]
name = "gen-ts"
path = "src/bin/gen_ts.rs"
required-features = ["codegen"]
[[test]]
name = "macos_transports"
path = "tests/macos_transports.rs"
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.resvg]
version = "0.45"
optional = true
[dependencies.schemars]
version = "0.8"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tauri]
version = "2"
[dev-dependencies.tempfile]
version = "3"
[build-dependencies.tauri-plugin]
version = "2"
features = ["build"]
[target.'cfg(target_os = "linux")'.dependencies.gtk]
version = "0.18"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.gtk-layer-shell]
version = "0.8"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.raw-window-handle]
version = "0.6"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.x11rb]
version = "0.13"
optional = true