watchword-core
The types watchword's server and frontends share: identities, roles,
account state, the JSON wire types of the /api/auth routes,
AuthError, and input validation.
Apps normally use these through watchword, which re-exports them as
watchword::types and at its crate root, or through a frontend crate such
as watchword-yew023. Released in lockstep with watchword.
Features
With no features the crate is safe to build for wasm32-unknown-unknown.
| Feature | What it provides |
|---|---|
musli01 |
musli 0.1 Encode/Decode on the wire types, so an app can embed them in its own WebSocket messages |
axum08 |
axum 0.8 IntoResponse for AuthError, answering with its JSON body and status; watchword's axum08 feature turns it on (not for wasm) |