[package]
edition = "2024"
rust-version = "1.99"
name = "alibi-sqlx"
version = "0.4.0"
build = false
include = [
"/src/**",
"/migrations/**",
"/README.md",
"/LICENSE",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLx integration for Alibi"
homepage = "https://alibi.schmatzler.com"
documentation = "https://docs.rs/alibi-sqlx"
readme = "README.md"
keywords = [
"auth",
"authentication",
"session",
"oauth",
"security",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT"
repository = "https://github.com/cschmatzler/better-auth-rs"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"sqlite",
"postgres",
]
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]
tls-native-tls = ["sqlx/tls-native-tls"]
tls-rustls = ["sqlx/tls-rustls"]
[lib]
name = "alibi_sqlx"
path = "src/lib.rs"
[dependencies.alibi-core]
version = "0.4.0"
[dependencies.alibi-sqlx-macros]
version = "0.4.0"
[dependencies.async-trait]
version = "0.1.92"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.ryu-js]
version = "1.0.3"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = [
"preserve_order",
"float_roundtrip",
]
[dependencies.sqlx]
version = "0.9"
features = [
"runtime-tokio",
"chrono",
"json",
"uuid",
"derive",
]
default-features = false
[dependencies.tokio]
version = "1.0"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.18"
features = [
"v4",
"v7",
"serde",
]
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
equatable_if_let = "warn"
expect_used = "warn"
fn_params_excessive_bools = "allow"
indexing_slicing = "warn"
large_futures = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
must_use_candidate = "allow"
needless_collect = "warn"
or_fun_call = "warn"
panic = "warn"
panic_in_result_fn = "warn"
redundant_clone = "warn"
similar_names = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unreachable = "warn"
unused_async = "warn"
unwrap_used = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unfulfilled_lint_expectations = "warn"
unreachable_pub = "warn"
unused_results = "warn"