[package]
edition = "2021"
name = "openauth-sqlx"
version = "0.0.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLx database adapters for OpenAuth."
homepage = "https://github.com/sebastiansala/openauth"
documentation = "https://docs.rs/openauth-sqlx"
readme = "README.md"
keywords = [
"auth",
"oauth",
"sso",
"scim",
"identity",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT"
repository = "https://github.com/sebastiansala/openauth"
[features]
default = ["sqlite"]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]
[lib]
name = "openauth_sqlx"
path = "src/lib.rs"
[[test]]
name = "mysql_adapter"
path = "tests/mysql_adapter.rs"
[[test]]
name = "postgres_adapter"
path = "tests/postgres_adapter.rs"
[[test]]
name = "sqlite_adapter"
path = "tests/sqlite_adapter.rs"
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.openauth-core]
version = "0.0.4"
[dependencies.serde_json]
version = "1"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"time",
"json",
]
default-features = false
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
default-features = false
[dev-dependencies.http]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[lints.clippy]
expect_used = "warn"
panic = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"