better-auth 0.9.0

The most comprehensive authentication framework for Rust
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "better-auth"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The most comprehensive authentication framework for Rust"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/better-auth-rs/better-auth-rs"
resolver = "2"

[features]
axum = [
    "dep:axum",
    "dep:tower",
    "dep:url",
]
default = []
derive = ["better-auth-core/derive"]
redis-cache = ["dep:redis"]
sqlx-postgres = [
    "dep:sqlx",
    "better-auth-core/sqlx-postgres",
]

[lib]
name = "better_auth"
path = "src/lib.rs"

[[bin]]
name = "openapi_alignment_report"
path = "scripts/openapi_alignment_report.rs"

[[bin]]
name = "sync_better_auth_openapi"
path = "scripts/sync_better_auth_openapi.rs"

[[example]]
name = "axum_server"
path = "examples/axum_server.rs"
required-features = ["axum"]

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "custom_entities"
path = "examples/custom_entities.rs"
required-features = ["derive"]

[[example]]
name = "custom_orm_adapter"
path = "examples/custom_orm_adapter.rs"

[[example]]
name = "postgres_usage"
path = "examples/postgres_usage.rs"
required-features = ["sqlx-postgres"]

[[example]]
name = "shared_sqlx_pool"
path = "examples/shared_sqlx_pool.rs"

[[test]]
name = "axum_integration_tests"
path = "tests/axum_integration_tests.rs"

[[test]]
name = "compat_admin_tests"
path = "tests/compat_admin_tests.rs"

[[test]]
name = "compat_consistency_tests"
path = "tests/compat_consistency_tests.rs"

[[test]]
name = "compat_coverage_tests"
path = "tests/compat_coverage_tests.rs"

[[test]]
name = "compat_endpoint_tests"
path = "tests/compat_endpoint_tests.rs"

[[test]]
name = "compat_field_tests"
path = "tests/compat_field_tests.rs"

[[test]]
name = "compat_organization_tests"
path = "tests/compat_organization_tests.rs"

[[test]]
name = "compat_passkey_tests"
path = "tests/compat_passkey_tests.rs"

[[test]]
name = "compat_unit_tests"
path = "tests/compat_unit_tests.rs"

[[test]]
name = "compatibility_tests"
path = "tests/compatibility_tests.rs"

[[test]]
name = "derive_tests"
path = "tests/derive_tests.rs"

[[test]]
name = "dual_server_tests"
path = "tests/dual_server_tests.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[[test]]
name = "meta_trait_tests"
path = "tests/meta_trait_tests.rs"

[[test]]
name = "phase0_tests"
path = "tests/phase0_tests.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[test]]
name = "snapshot_tests"
path = "tests/snapshot_tests.rs"

[dependencies.argon2]
version = "0.5"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.better-auth-api]
version = "0.9.0"

[dependencies.better-auth-core]
version = "0.9.0"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.jsonwebtoken]
version = "9"

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.27"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "chrono",
    "uuid",
    "json",
]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.url]
version = "2"
optional = true

[dependencies.uuid]
version = "1.18"
features = [
    "v4",
    "v7",
    "serde",
]

[dev-dependencies.insta]
version = "1.46.3"
features = ["yaml"]

[dev-dependencies.oas3]
version = "0.20.1"
features = ["yaml-spec"]

[dev-dependencies.proptest]
version = "1.10.0"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[dev-dependencies.serde_yaml]
version = "0.9"

[dev-dependencies.tokio]
version = "1.0"
features = [
    "full",
    "full",
    "test-util",
]

[dev-dependencies.tower-http]
version = "0.6"
features = ["cors"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[profile.ci]
opt-level = 2
lto = "thin"
codegen-units = 16
inherits = "release"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
incremental = false
strip = true