[package]
edition = "2021"
name = "rustauth-diesel"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Diesel database adapters for RustAuth."
homepage = "https://github.com/salasebas/rustauth"
documentation = "https://docs.rs/rustauth-diesel"
readme = "README.md"
keywords = [
"auth",
"oauth",
"sso",
"scim",
"identity",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT"
repository = "https://github.com/salasebas/rustauth"
[features]
default = []
mysql = [
"diesel/mysql",
"diesel-async/mysql",
"diesel/time",
"diesel/serde_json",
]
postgres = [
"dep:pq-sys",
"diesel/postgres",
"diesel-async/postgres",
"diesel/uuid",
"diesel/time",
"diesel/serde_json",
"dep:tokio-postgres",
"uuid",
]
[lib]
name = "rustauth_diesel"
path = "src/lib.rs"
[[test]]
name = "diesel_feasibility"
path = "tests/diesel_feasibility.rs"
[[test]]
name = "mysql_adapter"
path = "tests/mysql_adapter.rs"
[[test]]
name = "postgres_adapter"
path = "tests/postgres_adapter.rs"
[dependencies.diesel]
version = "2.3"
default-features = false
[dependencies.diesel-async]
version = "0.9"
features = [
"pool",
"deadpool",
]
default-features = false
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.pq-sys]
version = "0.7"
features = ["bundled"]
optional = true
[dependencies.rustauth-core]
version = "0.3.1"
default-features = false
[dependencies.serde_json]
version = "1"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"fs",
]
default-features = false
[dependencies.tokio-postgres]
version = "0.7.18"
features = [
"with-serde_json-1",
"with-time-0_3",
"with-uuid-1",
"with-serde_json-1",
"with-time-0_3",
"with-uuid-1",
]
optional = true
[dependencies.uuid]
version = "1"
features = [
"serde",
"v4",
"v5",
]
optional = true
[dev-dependencies.http]
version = "1"
[dev-dependencies.indexmap]
version = "2"
features = ["serde"]
[dev-dependencies.rustauth-core]
version = "0.3.1"
features = ["test-utils"]
default-features = false
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"time",
"json",
"postgres",
"mysql",
"uuid",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"macros",
"rt-multi-thread",
]
default-features = false
[dev-dependencies.uuid]
version = "1"
features = [
"serde",
"v4",
"v5",
]
[lints.clippy]
expect_used = "warn"
panic = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"