# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.92"
name = "fraiseql-wire"
version = "2.2.0"
authors = ["Lionel Hamayon <lionel@evolution-digitale.fr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Streaming JSON query engine for Postgres 17"
homepage = "https://github.com/fraiseql/fraiseql-wire"
documentation = "https://docs.rs/fraiseql-wire"
readme = "README.md"
keywords = [
    "postgres",
    "postgresql",
    "json",
    "streaming",
    "async",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fraiseql/fraiseql"

[features]
bench-with-postgres = []
bench-with-tokio-postgres = []

[lib]
name = "fraiseql_wire"
path = "src/lib.rs"

[[example]]
name = "advanced_filtering"
path = "examples/advanced_filtering.rs"

[[example]]
name = "basic_query"
path = "examples/basic_query.rs"

[[example]]
name = "basic_stream"
path = "examples/basic_stream.rs"

[[example]]
name = "config"
path = "examples/config.rs"

[[example]]
name = "error_handling"
path = "examples/error_handling.rs"

[[example]]
name = "filtering"
path = "examples/filtering.rs"

[[example]]
name = "metrics_collection"
path = "examples/metrics_collection.rs"

[[example]]
name = "ordering"
path = "examples/ordering.rs"

[[example]]
name = "pause_resume"
path = "examples/pause_resume.rs"

[[example]]
name = "scram_auth"
path = "examples/scram_auth.rs"

[[example]]
name = "streaming"
path = "examples/streaming.rs"

[[example]]
name = "tls"
path = "examples/tls.rs"

[[example]]
name = "typed_streaming"
path = "examples/typed_streaming.rs"

[[example]]
name = "unix_socket_test"
path = "examples/unix_socket_test.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "comparison_benchmarks"
path = "benches/comparison_benchmarks.rs"
harness = false
required-features = ["bench-with-tokio-postgres"]

[[bench]]
name = "integration_benchmarks"
path = "benches/integration_benchmarks.rs"
harness = false
required-features = ["bench-with-postgres"]

[[bench]]
name = "lazy_pause_resume"
path = "benches/lazy_pause_resume.rs"
harness = false
required-features = ["bench-with-postgres"]

[[bench]]
name = "micro_benchmarks"
path = "benches/micro_benchmarks.rs"
harness = false

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.hmac]
version = "0.12"

[dependencies.metrics]
version = "0.22"

[dependencies.pbkdf2]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.rustls]
version = "0.23"
features = ["ring"]

[dependencies.rustls-native-certs]
version = "0.8.3"

[dependencies.rustls-pemfile]
version = "2.2"

[dependencies.rustls-pki-types]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.6"
features = ["all"]

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.0"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "time",
    "io-util",
    "io-std",
    "sync",
    "signal",
    "fs",
]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.webpki-roots]
version = "0.26"

[dependencies.whoami]
version = "1"

[dependencies.zeroize]
version = "1.6"
features = [
    "std",
    "derive",
]

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.testcontainers]
version = "0.27"
features = ["watchdog"]

[dev-dependencies.testcontainers-modules]
version = "0.15"
features = ["postgres"]

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

[dev-dependencies.tokio-test]
version = "0.4"

[lints.clippy]
cargo_common_metadata = "allow"
if_not_else = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_enumerate_index = "allow"
unused_self = "allow"
unwrap_used = "deny"
use_self = "allow"

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

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

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

[lints.rust]
dead_code = "deny"
missing_docs = "deny"
unsafe_code = "forbid"
unused_imports = "warn"
unused_variables = "warn"
