Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tauri-plugin-phyto
A Tauri plugin that runs an HTTP automation server inside a Tauri app so Phyto (an end-to-end testing framework for Tauri) can drive it.
What it does
When the plugin is initialized, it:
- Starts an HTTP server on port
9876(configurable) bound to0.0.0.0. - Polls the webview until it has navigated past
about:blank, the Tauri IPC bridge is available, and the in-page Phyto harness (injected by@phyto/vite-plugin) has loaded. - Forwards
POST /commandrequests to the in-page harness viawindow.__phyto_harness__.execute(), then sends the structured result back over HTTP. - Exposes
GET /healthfor readiness probing.
The plugin is intended for test builds only. It listens on 0.0.0.0 and
runs arbitrary JavaScript supplied by the test driver — do not enable it in
production builds.
Usage
Add the dependency to your app's src-tauri/Cargo.toml:
[]
= "0.1"
Wire it into your Tauri builder:
To gate the plugin behind a Cargo feature (recommended) so it isn't compiled into production builds:
[]
= ["tauri-plugin-phyto"]
[]
= { = "0.1", = true }
Configuration
use PhytoConfig;
default
.plugin
| Field | Default | Description |
|---|---|---|
| port | 9876 | Port the HTTP automation server binds to. |
How it fits together
tauri-plugin-phyto is the in-app server half of Phyto. On the other side:
@phyto/vite-plugin(npm) injects the in-page harness into your app's build output during test runs.@phyto/driver-tauri(npm) is the Node-side driver that issuesclick/type/wait-forcommands over this plugin's HTTP socket.phyto(npm) is the test-authoring DSL.@phyto/cli(npm) is the orchestrator that builds the app, discovers tests, and runs each one against a fresh app instance.
See the top-level Phyto README for the full picture.
Protocol version
The plugin and driver negotiate a PROTOCOL_VERSION integer at startup. If
they disagree, the CLI exits with a clear error naming the mismatched
component. Bump this version on breaking wire-format changes only.