Expand description
tauri-plugin-phyto is split into two feature-gated halves:
runtime(default) — the actual Tauri plugin: HTTP automation server, IPC commands,init,PhytoConfig,PROTOCOL_VERSION. This is what consumers wire into their Tauri builder.build—std-only helpers for consumer build scripts. The single entry point [build::sync_capability] creates / removes the Phyto capability JSON sotauri-builddoesn’t reject capabilities that reference an unregistered plugin when thee2efeature is off. Enable from[build-dependencies]withdefault-features = false, features = ["build"]to keep the host compile graph small.
Structs§
- Pending
Callbacks - Shared state for pending command callbacks. Wrapped in Arc so both the HTTP server thread and Tauri command can share it.
- Phyto
Config - Configuration for the Phyto automation server.
Constants§
- PROTOCOL_
VERSION - Wire protocol version. Kept manually in lockstep with the
PROTOCOL_VERSIONconstants incrates/phyto-core/src/protocol.rsand the TS packages. The driver fetches this viaGET /infoand exits cleanly on mismatch — seepackages/driver-tauri/src/index.ts. Bump only on breaking wire-format changes.
Functions§
- init
- Initialize the Phyto plugin.