zero-postgres 0.1.0

A high-performance PostgreSQL client
Documentation
[dependencies.base64]
version = "0.22"

[dependencies.chrono]
default-features = false
features = ["std", "clock"]
optional = true
version = "0.4"

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.hmac]
version = "0.12"

[dependencies.log]
version = "0.4.29"

[dependencies.md-5]
version = "0.10"

[dependencies.memchr]
version = "2"

[dependencies.native-tls]
optional = true
version = "0.2"

[dependencies.no-panic]
version = "0.1.35"

[dependencies.pbkdf2]
features = ["hmac"]
version = "0.12"

[dependencies.rand]
version = "0.9"

[dependencies.rust_decimal]
optional = true
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.simdutf8]
version = "0.1"

[dependencies.std-semaphore]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
features = ["macros", "parsing"]
optional = true
version = "0.3"

[dependencies.tokio]
features = ["io-util", "net", "rt", "sync"]
optional = true
version = "1"

[dependencies.tokio-native-tls]
optional = true
version = "0.3"

[dependencies.tracing]
features = ["release_max_level_warn"]
version = "0.1"

[dependencies.url]
version = "2"

[dependencies.uuid]
optional = true
version = "1"

[dependencies.zerocopy]
features = ["derive"]
version = "0.8"

[dev-dependencies.postgres]
version = "0.19"

[dev-dependencies.tokio]
features = ["rt", "macros"]
version = "1"

[dev-dependencies.tokio-postgres]
version = "0.7"

[[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_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"

[features]
default = ["sync", "tokio"]
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"

[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"
else_if_without_else = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
expect_used = "warn"
field_scoped_visibility_modifiers = "warn"
filetype_is_file = "warn"
float_arithmetic = "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"
integer_division = "warn"
integer_division_remainder_used = "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"
modulo_arithmetic = "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"
partial_pub_fields = "warn"
pathbuf_init_then_push = "warn"
pointer_format = "warn"
precedence_bits = "warn"
print_stderr = "warn"
print_stdout = "warn"
pub_with_shorthand = "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"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "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"
use_debug = "warn"
verbose_file_reads = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["database"]
description = "A high-performance PostgreSQL client"
edition = "2024"
keywords = ["postgres", "postgresql", "database", "sql", "async"]
license = "MIT"
name = "zero-postgres"
readme = "README.md"
repository = "https://github.com/elbaro/zero-postgres"
version = "0.1.0"

[[test]]
name = "exec_batch"
path = "tests/exec_batch.rs"

[[test]]
name = "exec_iter"
path = "tests/exec_iter.rs"

[[test]]
name = "pipeline"
path = "tests/pipeline.rs"

[[test]]
name = "portal_behavior"
path = "tests/portal_behavior.rs"