Stackure Rust SDK
Authentication for your app. Framework-agnostic.
Install
[]
= "1"
Verify a request
use verify;
let result = verify.await;
if result.authenticated else
Send a magic link
use send_magic_link;
send_magic_link.await?;
Log out
use logout;
logout.await?;
Configuration
Set STACKURE_BASE_URL to point at a non-production environment:
STACKURE_BASE_URL=https://stage.stackure.com
Errors
Every fallible function returns StackureError. Match on the variant, or use .code() for the stable string form matching the other Stackure SDKs:
use StackureError;
match send_magic_link.await
Contributing
Open a PR. Tag a release when ready: git tag vX.Y.Z && git push --tags — the release workflow builds, signs, and publishes.
Security
Report vulnerabilities via GitHub Security Advisories. Releases are signed with cosign and carry GitHub build-provenance attestations.
License
MIT