Skip to main content

rs_auth/
lib.rs

1//! Composable authentication for Rust.
2//!
3//! `rs-auth` is a facade crate that re-exports [`rs_auth_core`] (always),
4//! [`rs_auth_postgres`] (behind the `postgres` feature), and [`rs_auth_axum`]
5//! (behind the `axum` feature).
6//!
7//! # Quick start
8//!
9//! ```toml
10//! [dependencies]
11//! rs-auth = { version = "0.1", features = ["postgres", "axum"] }
12//! ```
13
14pub use rs_auth_core as core;
15pub use rs_auth_core::*;
16
17#[cfg(feature = "postgres")]
18pub use rs_auth_postgres as postgres;
19
20#[cfg(feature = "axum")]
21pub use rs_auth_axum as axum;