[package]
edition = "2024"
rust-version = "1.99.0"
name = "sift-query-sqlx"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL renderer and sqlx executor for SiftQuery"
homepage = "https://docs.rs/sift-query"
documentation = "https://docs.rs/sift-query-sqlx"
readme = "README.md"
keywords = [
"sqlx",
"postgres",
"query",
]
categories = [
"database",
"web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/wsafight/sift-query.git"
[features]
actix-web = ["dep:actix-web"]
axum = ["dep:axum"]
chrono = [
"sift-query-core/chrono",
"sqlx/chrono",
"dep:chrono",
]
decimal = [
"sift-query-core/decimal",
"sqlx/rust_decimal",
"dep:rust_decimal",
]
default = []
json = [
"sift-query-core/json",
"sqlx/json",
]
ltree = ["postgres-search"]
pg-trgm = ["postgres-search"]
poem = ["dep:poem"]
postgis = [
"postgres-search",
"dep:wkt",
]
postgres-search = []
postgres-types = [
"sift-query-core/postgres-types",
"json",
"sqlx/ipnet",
"dep:ipnet",
]
rls = []
serde = [
"sift-query-core/serde",
"dep:serde",
"indexmap/serde",
]
uuid = [
"sift-query-core/uuid",
"sqlx/uuid",
"dep:uuid",
]
[lib]
name = "sift_query_sqlx"
path = "src/lib.rs"
[[test]]
name = "bean_searcher_compat"
path = "tests/bean_searcher_compat.rs"
[[test]]
name = "cache_properties"
path = "tests/cache_properties.rs"
[[test]]
name = "executor_api"
path = "tests/executor_api.rs"
[[test]]
name = "m2_features"
path = "tests/m2_features.rs"
[[test]]
name = "native_postgres"
path = "tests/native_postgres.rs"
[[test]]
name = "observability"
path = "tests/observability.rs"
[[test]]
name = "p0_postgres"
path = "tests/p0_postgres.rs"
[[test]]
name = "pool_router"
path = "tests/pool_router.rs"
[[test]]
name = "postgres"
path = "tests/postgres/main.rs"
[[test]]
name = "product_alignment"
path = "tests/product_alignment.rs"
[[test]]
name = "products"
path = "tests/products.rs"
[[test]]
name = "renderer"
path = "tests/renderer.rs"
[[test]]
name = "renderer_coverage"
path = "tests/renderer_coverage/main.rs"
[[test]]
name = "rls_postgres"
path = "tests/rls_postgres.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "template_cache"
path = "tests/template_cache.rs"
[[test]]
name = "web_transport"
path = "tests/web_transport.rs"
[[bench]]
name = "core_pipeline"
path = "benches/core_pipeline.rs"
harness = false
[[bench]]
name = "postgres_workload"
path = "benches/postgres_workload.rs"
harness = false
[dependencies.actix-web]
version = "4.11.0"
optional = true
[dependencies.async-stream]
version = "0.3.6"
[dependencies.axum]
version = "0.8.6"
optional = true
[dependencies.chrono]
version = "0.4.42"
optional = true
default-features = false
[dependencies.futures-core]
version = "0.3.31"
[dependencies.futures-util]
version = "0.3.31"
[dependencies.indexmap]
version = "2.11.4"
[dependencies.ipnet]
version = "2.12"
optional = true
[dependencies.poem]
version = "3.1.12"
optional = true
[dependencies.rust_decimal]
version = "1.39.0"
optional = true
default-features = false
[dependencies.serde]
version = "1.0.228"
optional = true
[dependencies.serde_json]
version = "1.0.145"
[dependencies.sift-query-algorithm]
version = "0.1.0"
[dependencies.sift-query-core]
version = "0.1.0"
[dependencies.sift-query-sqlx-common]
version = "0.1.0"
[dependencies.sqlx]
version = "0.9.0"
features = [
"runtime-tokio",
"postgres",
"macros",
"json",
]
default-features = false
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
version = "1.47.1"
features = [
"io-util",
"sync",
"time",
]
default-features = false
[dependencies.tracing]
version = "0.1.41"
[dependencies.uuid]
version = "1.18.1"
optional = true
default-features = false
[dependencies.wkt]
version = "0.14"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.7.0"
[dev-dependencies.proptest]
version = "1.11.0"
[dev-dependencies.serde_json]
version = "1.0.145"
[dev-dependencies.sift-query-derive]
version = "0.1.0"
[dev-dependencies.sqlx]
version = "0.9.0"
features = [
"runtime-tokio",
"postgres",
"macros",
]
default-features = false
[dev-dependencies.tokio]
version = "1.47.1"
features = [
"macros",
"rt-multi-thread",
]
default-features = false
[dev-dependencies.tracing-subscriber]
version = "0.3.20"
features = ["fmt"]
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
new_ret_no_self = "allow"
too_many_lines = "allow"
type_complexity = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"