[package]
edition = "2021"
rust-version = "1.75"
name = "sentinel-driver"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance PostgreSQL wire protocol driver for Rust"
homepage = "https://github.com/cntm-labs/sentinel-driver"
readme = "README.md"
keywords = [
"postgresql",
"database",
"driver",
"async",
"tokio",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cntm-labs/sentinel-driver"
[features]
default = ["derive"]
derive = ["dep:sentinel-derive"]
with-rust-decimal = ["dep:rust_decimal"]
with-serde-json = [
"dep:serde",
"dep:serde_json",
]
with-time = ["dep:time"]
[lib]
name = "sentinel_driver"
path = "src/lib.rs"
[[test]]
name = "ui_tests"
path = "tests/ui_tests.rs"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false
[dependencies.futures-core]
version = "0.3"
[dependencies.hmac]
version = "0.12"
[dependencies.lru]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.rust_decimal]
version = "1"
optional = true
[dependencies.rustls]
version = "0.23"
[dependencies.rustls-pemfile]
version = "2"
[dependencies.rustls-pki-types]
version = "1"
[dependencies.sentinel-derive]
version = "1.0.0"
optional = true
[dependencies.serde]
version = "1"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.stringprep]
version = "0.1"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = ["std"]
optional = true
[dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"time",
"sync",
"rt",
"macros",
]
[dependencies.tokio-rustls]
version = "0.26"
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
[dependencies.webpki-roots]
version = "0.26"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.time]
version = "0.3"
features = [
"std",
"macros",
]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cloned_instead_of_copied = "deny"
dbg_macro = "forbid"
doc_markdown = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
exit = "forbid"
expect_used = "deny"
implicit_clone = "deny"
items_after_statements = "allow"
large_enum_variant = "deny"
manual_let_else = "deny"
many_single_char_names = "allow"
mem_forget = "forbid"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "deny"
print_stderr = "forbid"
print_stdout = "forbid"
redundant_closure_for_method_calls = "deny"
redundant_else = "allow"
result_large_err = "deny"
return_self_not_must_use = "allow"
todo = "forbid"
unimplemented = "forbid"
unreadable_literal = "allow"
unwrap_used = "forbid"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"