[package]
edition = "2024"
name = "spg-sqlx"
version = "7.37.16"
authors = ["GOLIA K.K. <lihao@golia.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "sqlx 0.8 Database driver for spg-embedded — let in-process callers use sqlx::query / query_as / pool.begin against an in-process SPG without a TCP listener. Backs mailrs's drop-in PgPool → SpgPool swap (gap-eval E1)."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/spg"
[features]
bigdecimal = [
"dep:bigdecimal",
"dep:num-bigint",
"dep:num-traits",
]
chrono = ["dep:chrono"]
default = [
"chrono",
"json",
"bigdecimal",
"uuid",
]
json = ["dep:serde_json"]
uuid = ["dep:uuid"]
[lib]
name = "spg_sqlx"
path = "src/lib.rs"
[[test]]
name = "e2e"
path = "tests/e2e/main.rs"
[dependencies.bigdecimal]
version = "0.4"
optional = true
default-features = false
[dependencies.chrono]
version = "0.4"
features = [
"clock",
"std",
]
optional = true
default-features = false
[dependencies.either]
version = "1"
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.num-bigint]
version = "0.4"
optional = true
default-features = false
[dependencies.num-traits]
version = "0.2"
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.spg-embedded]
version = "7.34"
[dependencies.spg-embedded-tokio]
version = "7.34"
[dependencies.spg-storage]
version = "7.34"
[dependencies.sqlx-core]
version = "0.8"
default-features = false
[dependencies.tokio]
version = "1"
features = ["sync"]
[dependencies.uuid]
version = "1"
optional = true
default-features = false
[dev-dependencies.bigdecimal]
version = "0.4"
[dev-dependencies.chrono]
version = "0.4"
features = [
"clock",
"std",
]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio"]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.uuid]
version = "1"
features = ["v4"]
[lints.clippy]
approx_constant = "allow"
assigning_clones = "allow"
bool_assert_comparison = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
comparison_chain = "allow"
default_trait_access = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
duration_suboptimal_units = "allow"
duration_subsec = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
float_cmp_const = "allow"
for_kv_map = "allow"
format_push_string = "allow"
from_iter_instead_of_collect = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
items_after_statements = "allow"
len_zero = "allow"
let_and_return = "allow"
manual_assert = "allow"
manual_checked_ops = "allow"
manual_clamp = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_for_each = "allow"
needless_option_as_deref = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
range_plus_one = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_locals = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_panic_without_expect = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_map_or = "allow"
unnecessary_to_owned = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_self = "allow"
useless_format = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
dead_code = "allow"
missing_debug_implementations = "warn"
non_snake_case = "allow"
unsafe_code = "deny"
unused_must_use = "deny"
unused_mut = "allow"
unused_variables = "allow"