# 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-arrow"
version = "2.6.0"
authors = ["FraiseQL Team <team@fraiseql.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apache Arrow Flight integration for FraiseQL"
homepage = "https://fraiseql.dev"
documentation = "https://docs.fraiseql.dev"
readme = "README.md"
keywords = [
    "graphql",
    "database",
    "compiler",
    "sql",
]
categories = [
    "database",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fraiseql/fraiseql"

[features]
clickhouse = ["dep:clickhouse"]
default = []
parquet = ["dep:parquet"]
testing = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arrow]
version = "57"
features = [
    "csv",
    "json",
]

[dependencies.arrow-flight]
version = "57"

[dependencies.arrow-schema]
version = "57"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clickhouse]
version = "0.14"
features = ["inserter"]
optional = true

[dependencies.dashmap]
version = "6.1"

[dependencies.fraiseql-core]
version = "2.6.0"
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.jsonwebtoken]
version = "10"

[dependencies.parquet]
version = "57"
optional = true

[dependencies.prost]
version = "0.14"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tonic]
version = "0.14"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.21"
features = [
    "v4",
    "serde",
]

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

[dev-dependencies.fraiseql-core]
version = "2.6.0"
features = ["postgres"]
default-features = false

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio",
    "chrono",
    "uuid",
]

[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio-stream]
version = "0.1"

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

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

[dev-dependencies.uuid]
version = "1.21"
features = [
    "v4",
    "serde",
]

[lints.clippy]
cargo_common_metadata = "allow"
dbg_macro = "deny"
if_not_else = "allow"
lossy_float_literal = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "deny"
option_if_let_else = "allow"
or_fun_call = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "deny"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreachable = "deny"
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 = "deny"
priority = -1

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

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

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