[package]
edition = "2021"
rust-version = "1.70"
name = "tauri-plugin-widgets"
version = "0.5.0"
authors = ["s00d"]
build = "build.rs"
links = "tauri-plugin-widgets"
exclude = [
"/examples",
"/dist-js",
"/dist-cli",
"/guest-js",
"/src-cli",
"/widget-src",
"/templates",
"/swift",
"/node_modules",
"/docs",
"/scripts",
"/.github",
"/artifacts",
"/tests/golden",
"/tests/expected",
"/tests/desktop",
"/tests/windows",
"/tests/macos",
"/tests/linux",
"/tests/cli",
"/android/src/test",
"/android/src/androidTest",
"/ios/Tests",
"demo.gif",
"preview.png",
"package.json",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"tsconfig.json",
"rollup.config.mjs",
"Justfile",
"schemas/capabilities.coverage.json",
]
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",
"image-prefetch",
]
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",
"image-prefetch",
]
image-prefetch = ["dep:ureq"]
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"]
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-native"
path = "src/bin/gen_native.rs"
required-features = ["codegen"]
[[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"
[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(not(target_os = "android"))'.dependencies.ureq]
version = ">=2.0, <2.12"
optional = true
default-features = true
[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