zero-mysql 0.4.1

A high-performance MySQL client
Documentation
[package]
name = "zero-mysql"
version = "0.4.1"
edition = "2024"
license = "MIT"
description = "A high-performance MySQL client"
repository = "https://github.com/elbaro/zero-mysql"
keywords = ["mysql", "mariadb", "database", "sql", "async"]
categories = ["database"]

[workspace]
members = ["zero-mysql-derive"]

[features]
default = ["sync", "tokio", "derive"]
sync = []
tokio = ["dep:tokio"]
sync-tls = ["dep:native-tls"]
tokio-tls = ["dep:native-tls", "dep:tokio-native-tls"]
derive = ["dep:zero-mysql-derive"]
with-uuid = ["dep:uuid"]
with-chrono = ["dep:chrono"]
with-time = ["dep:time"]
with-rust-decimal = ["dep:rust_decimal"]

[dependencies]
thiserror = "2"
tokio = { version = "1", features = [
  "io-util",
  "net",
  "rt",
  "sync",
], optional = true }
native-tls = { version = "0.2", optional = true }
tokio-native-tls = { version = "0.3", optional = true }
zerocopy = { version = "0.8", features = ["derive"] }
sha1 = "0.10"
sha2 = "0.10"
url = "2.5"
bitflags = "2.10"
log = "0.4"
auto_impl = "1"
tracing = { version = "0.1", features = ["release_max_level_warn"] }
crossbeam-queue = "0.3"
std-semaphore = "0.1"
color-eyre = "0.6"
simdutf8 = "0.1"
smart-default = "0.7"
zero-mysql-derive = { version = "0.1", path = "zero-mysql-derive", optional = true }
uuid = { version = "1", optional = true }
chrono = { version = "0.4", default-features = false, optional = true }
time = { version = "0.3", optional = true }
rust_decimal = { version = "1", optional = true }

[lints.clippy]
all = { level = "deny", priority = -1 }
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"


[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
criterion = { version = "0.8", features = ["html_reports"] }
pretty_assertions = "1.4"
tracing-subscriber = "0.3"
mysql = "26"
mysql_async = "0.36"
tracing-tracy = "0.11"

[profile.bench]
debug = true

[[bench]]
name = "zero_mysql_benches"
harness = false

[[bench]]
name = "mysql_benches"
harness = false
required-features = []

[[test]]
name = "derive"
required-features = ["derive"]