[package]
edition = "2024"
name = "zero-postgres"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance PostgreSQL client"
readme = "README.md"
keywords = [
"postgres",
"postgresql",
"database",
"sql",
"async",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/elbaro/zero-postgres"
[features]
compio = ["dep:compio"]
compio-tls = ["compio/native-tls"]
default = [
"sync",
"tokio",
"derive",
]
derive = ["dep:zero-postgres-derive"]
diesel = [
"dep:diesel",
"sync",
]
lowlevel = []
sync = []
sync-tls = ["dep:native-tls"]
tokio = ["dep:tokio"]
tokio-tls = [
"dep:native-tls",
"dep:tokio-native-tls",
]
with-chrono = ["dep:chrono"]
with-rust-decimal = ["dep:rust_decimal"]
with-time = ["dep:time"]
with-uuid = ["dep:uuid"]
[lib]
name = "zero_postgres"
path = "src/lib.rs"
[[example]]
name = "async_connection"
path = "examples/async_connection.rs"
[[example]]
name = "async_tls"
path = "examples/async_tls.rs"
[[example]]
name = "bench_postgres"
path = "examples/bench_postgres.rs"
[[example]]
name = "bench_tokio_postgres"
path = "examples/bench_tokio_postgres.rs"
[[example]]
name = "bench_zero_async"
path = "examples/bench_zero_async.rs"
[[example]]
name = "bench_zero_compio"
path = "examples/bench_zero_compio.rs"
required-features = ["compio"]
[[example]]
name = "bench_zero_sync"
path = "examples/bench_zero_sync.rs"
[[example]]
name = "connection"
path = "examples/connection.rs"
[[example]]
name = "extended_data_types"
path = "examples/extended_data_types.rs"
[[example]]
name = "pipeline"
path = "examples/pipeline.rs"
[[example]]
name = "pipeline_batch"
path = "examples/pipeline_batch.rs"
[[example]]
name = "prepare_batch"
path = "examples/prepare_batch.rs"
[[example]]
name = "simple_data_types"
path = "examples/simple_data_types.rs"
[[example]]
name = "sync_tls"
path = "examples/sync_tls.rs"
[[test]]
name = "compio_error_recovery"
path = "tests/compio_error_recovery.rs"
[[test]]
name = "compio_exec_portal"
path = "tests/compio_exec_portal.rs"
[[test]]
name = "compio_exec_portal_unnamed"
path = "tests/compio_exec_portal_unnamed.rs"
[[test]]
name = "compio_pipeline"
path = "tests/compio_pipeline.rs"
[[test]]
name = "compio_transaction"
path = "tests/compio_transaction.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "diesel"
path = "tests/diesel.rs"
[[test]]
name = "ref_from_row"
path = "tests/ref_from_row.rs"
[[test]]
name = "sync_error_recovery"
path = "tests/sync_error_recovery.rs"
[[test]]
name = "sync_exec_batch"
path = "tests/sync_exec_batch.rs"
[[test]]
name = "sync_exec_portal"
path = "tests/sync_exec_portal.rs"
[[test]]
name = "sync_exec_portal_unnamed"
path = "tests/sync_exec_portal_unnamed.rs"
[[test]]
name = "sync_pipeline"
path = "tests/sync_pipeline.rs"
[[test]]
name = "sync_portal_behavior"
path = "tests/sync_portal_behavior.rs"
[[test]]
name = "sync_transaction"
path = "tests/sync_transaction.rs"
[[test]]
name = "tokio_error_recovery"
path = "tests/tokio_error_recovery.rs"
[[test]]
name = "tokio_exec_portal"
path = "tests/tokio_exec_portal.rs"
[[test]]
name = "tokio_exec_portal_unnamed"
path = "tests/tokio_exec_portal_unnamed.rs"
[[test]]
name = "tokio_pipeline"
path = "tests/tokio_pipeline.rs"
[[test]]
name = "tokio_transaction"
path = "tests/tokio_transaction.rs"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = [
"std",
"clock",
]
optional = true
default-features = false
[dependencies.compio]
version = "0.18"
features = [
"io",
"net",
"runtime",
"macros",
]
optional = true
[dependencies.crossbeam-queue]
version = "0.3"
[dependencies.diesel]
version = "2"
features = [
"postgres_backend",
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
]
optional = true
[dependencies.hmac]
version = "0.12"
[dependencies.log]
version = "0.4"
[dependencies.md-5]
version = "0.10"
[dependencies.memchr]
version = "2"
[dependencies.native-tls]
version = "0.2"
optional = true
[dependencies.no-panic]
version = "0.1"
[dependencies.pbkdf2]
version = "0.12"
features = ["hmac"]
[dependencies.rand]
version = "0.9"
[dependencies.rust_decimal]
version = "1"
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.simdutf8]
version = "0.1"
[dependencies.std-semaphore]
version = "0.1"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"macros",
"parsing",
]
optional = true
[dependencies.tokio]
version = "1"
features = [
"io-util",
"net",
"rt",
"sync",
]
optional = true
[dependencies.tokio-native-tls]
version = "0.3"
optional = true
[dependencies.tracing]
version = "0.1"
features = ["release_max_level_warn"]
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
optional = true
[dependencies.zero-postgres-derive]
version = "0.2"
optional = true
[dependencies.zerocopy]
version = "0.8"
features = ["derive"]
[dev-dependencies.postgres]
version = "0.19"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]
[dev-dependencies.tokio-postgres]
version = "0.7"
[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
as_pointer_underscore = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
cfg_not_test = "warn"
clone_on_ref_ptr = "warn"
cognitive_complexity = "warn"
create_dir = "warn"
dbg_macro = "warn"
decimal_literal_representation = "warn"
default_union_representation = "warn"
disallowed_script_idents = "warn"
doc_include_without_cfg = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
expect_used = "warn"
filetype_is_file = "warn"
float_cmp_const = "warn"
fn_to_numeric_cast_any = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
infinite_loop = "warn"
inline_asm_x86_att_syntax = "warn"
inline_asm_x86_intel_syntax = "warn"
iter_over_hash_type = "warn"
large_include_file = "warn"
lossy_float_literal = "warn"
map_err_ignore = "warn"
map_with_unused_argument_over_ranges = "warn"
mem_forget = "warn"
missing_asserts_for_indexing = "warn"
mixed_read_write_in_expression = "warn"
multiple_inherent_impl = "warn"
multiple_unsafe_ops_per_block = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_raw_strings = "warn"
non_ascii_literal = "warn"
non_zero_suggestions = "warn"
panic = "warn"
panic_in_result_fn = "warn"
pathbuf_init_then_push = "warn"
pointer_format = "warn"
precedence_bits = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_test_prefix = "warn"
redundant_type_annotations = "warn"
ref_patterns = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
same_name_method = "warn"
self_named_module_files = "warn"
semicolon_inside_block = "warn"
shadow_same = "warn"
shadow_unrelated = "warn"
string_add = "warn"
string_lit_chars_any = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unreachable = "warn"
unused_result_ok = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
verbose_file_reads = "warn"
[lints.clippy.all]
level = "deny"
priority = -1