Skip to main content

Crate rustauth_core

Crate rustauth_core 

Source
Expand description

Core types and primitives for RustAuth.

Re-exports§

pub use background::tokio::TokioBackgroundTaskRunner;
pub use outbound::dispatch_outbound;
pub use outbound::ready_outbound;
pub use outbound::OutboundSendFuture;
pub use error::RustAuthError;
pub use options::RustAuthOptions;

Modules§

api
Framework-neutral API contracts.
auth
Core authentication behavior shared by the public RustAuth crate.
background
Background task execution helpers.
context
Request and runtime context contracts.
cookies
Cookie naming, parsing, and chunking helpers.
crypto
Cryptographic primitives used by RustAuth core.
db
Database contracts, model metadata, and SQL naming defaults.
env
Environment helpers for RustAuth core.
error
Error types for RustAuth core.
error_codes
Stable API error code strings (parity with Better Auth BASE_ERROR_CODES).
options
Configuration types for RustAuth core.
outbound
plugin
Plugin contracts for RustAuth extensions.
rate_limit
Router-level rate limiting.
secret
session
Database-backed session lifecycle helpers.
user
Database-backed user and credential account helpers.
utils
Small shared utilities.
verification
Database-backed verification token/value helpers.

Constants§

VERSION
Current crate version.