Installation
Add Better Auth to your Rust project.
Add the Dependency
[dependencies]
better-auth = { version = "1.0.0-alpha.2", features = ["seaorm2"] }
tokio = { version = "1", features = ["full"] }Feature Flags
Enable additional functionality with feature flags:
[dependencies]
better-auth = { version = "1.0.0-alpha.2", features = ["axum", "seaorm2"] }| Feature | Description |
|---|---|
axum | Axum web framework integration with route mounting and session extractors |
No features are enabled by default. The core library works with SeaORM-backed auth persistence and the framework-agnostic request/response types.
Minimum Supported Rust Version
Better Auth requires Rust 1.85 or later (Rust 2024 edition).