tauri_plugin_phyto/lib.rs
1//! `tauri-plugin-phyto` is split into two feature-gated halves:
2//!
3//! - **`runtime`** (default) — the actual Tauri plugin: HTTP automation
4//! server, IPC commands, [`init`], [`PhytoConfig`], [`PROTOCOL_VERSION`].
5//! This is what consumers wire into their Tauri builder.
6//! - **`build`** — `std`-only helpers for consumer build scripts. The single
7//! entry point [`build::sync_capability`] creates / removes the Phyto
8//! capability JSON so `tauri-build` doesn't reject capabilities that
9//! reference an unregistered plugin when the `e2e` feature is off. Enable
10//! from `[build-dependencies]` with `default-features = false,
11//! features = ["build"]` to keep the host compile graph small.
12
13#[cfg(feature = "build")]
14pub mod build;
15
16#[cfg(feature = "runtime")]
17mod runtime;
18#[cfg(feature = "runtime")]
19pub use runtime::*;