Skip to main content

rustauth_core/
lib.rs

1//! Core types and primitives for RustAuth.
2
3pub mod api;
4pub mod auth;
5pub mod background;
6pub mod context;
7pub mod cookies;
8pub mod crypto;
9pub mod db;
10pub mod env;
11pub mod error;
12pub mod error_codes;
13pub mod options;
14pub mod outbound;
15pub mod plugin;
16pub mod rate_limit;
17pub mod secret;
18pub mod session;
19pub mod user;
20pub mod utils;
21pub mod verification;
22
23pub use background::tokio::TokioBackgroundTaskRunner;
24pub use outbound::{dispatch_outbound, ready_outbound, OutboundSendFuture};
25
26#[cfg(any(test, feature = "test-utils"))]
27#[path = "options/storage_contract.rs"]
28pub mod storage_contract;
29
30#[cfg(feature = "test-utils")]
31pub mod test_utils;
32
33#[cfg(feature = "oauth")]
34pub use rustauth_oauth as oauth;
35#[cfg(feature = "social-providers")]
36pub use rustauth_social_providers as social_providers;
37
38/// Current crate version.
39pub const VERSION: &str = env!("CARGO_PKG_VERSION");
40
41pub use error::RustAuthError;
42pub use options::RustAuthOptions;