Latest states

This commit is contained in:
2026-06-04 01:15:41 -04:00
parent a5ef93b879
commit 578e124d67
4 changed files with 1839 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
# @mizan/tauri-transport
Mizan transport adapter routing calls through Tauri's IPC instead of
HTTP fetch. Paired with the `mizan-tauri` Rust plugin.
```bash
npm install @mizan/base @mizan/tauri-transport @tauri-apps/api
```
```ts
import { configure } from "@mizan/base";
import { tauriTransport } from "@mizan/tauri-transport";
configure({ transport: tauriTransport() });
```
That's the entire surface — no other API. Once configured at the app
entry (top of `main.tsx`), every `mizanCall` / `mizanFetch` in the
generated client routes through `invoke('plugin:mizan|mizan_invoke',
{ envelope })` instead of `fetch()`. Codegen output (Stage 1 + Stage 2
React hooks) is unchanged from the HTTP case; only the wire channel
differs.
See `backends/mizan-tauri/README.md` for the Rust-side plugin setup,
envelope shape, and full end-to-end walkthrough.