Get started
Verify and sign in Decane users from Rust.
decane is the server-side SDK for Decane Connect Kit, for Rust backends. It verifies Decane access tokens, resolves wallet addresses, signs users in from the server, reads and writes per-user records, and creates users and their wallets before they ever sign in. It is the Rust port of decane-node: the same endpoints, the same error codes, the same checks.
- Requires
- Rust 1.85+, edition 2024
- Crate
decane1.1.0, MIT- Runtime
- Async, on tokio
- TLS
reqwestwith rustls; no OpenSSL
Wiring up a coding agent? kit.decane.app/llms-rust.txt is a self-contained spec for this crate with real signatures, and llms-version.json tracks its freshness under the rust key. API docs are on docs.rs/decane.
Quick startVerify a Decane access token in a few lines.axum middlewareA drop-in extractor that turns a bad token into a 401.Server-side sign-inEmail and phone codes, Google, KingsChat and custom tokens.Per-user recordsPreferences the user owns and metadata only you can write.Server-side walletsCreate a user and their wallet before they sign in.API referenceEvery method on DecaneClient.