Cargo features
OS backends follow target_os (no empty Cargo feature toggles). Optional features:
linux(default) — gtk + x11rb for_NET_WM_WINDOW_TYPE_DESKTOPpinimage-prefetch(default) — host-side remoteimage.url→data:URI with disk/memory TTL cache (ureq). Not linked on Android (target-gated; KotlinlocalPathowns remote images). Disable on desktop/iOS/macOS/Windows to drop TLS from the dependency tree.rasterize— SVG→PNG data-URI for Adaptive Cards chart/canvas/gauge/shape/zstack, gradient backgrounds, andimage.systemNameglyphs (pulls resvg). Without it, Windows Widgets Board falls back to emojiTextBlockfor SF symbols. Enable for Windows Widgets Board parity.workerw— Windows wallpaper WorkerW parentinglayer-shell— Wayland gtk-layer-shell Background (requireslinux)macos-private-api— transparent macOS desktop widget webviews (also enable TaurimacosPrivateApiin conf)schema/codegen— JSON Schema / TS codegen tooling (dev)
toml
# Default (linux pin + image-prefetch; other OS via target_os)
tauri-plugin-widgets = "0.5"
# Slim: no linux pin / no gtk / no ureq
tauri-plugin-widgets = { version = "0.5", default-features = false }
# Windows Widgets Board with chart rasterization
tauri-plugin-widgets = { version = "0.5", default-features = false, features = ["rasterize"] }