# 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 = "2024"
rust-version = "1.85"
name = "arrow-flight"
version = "58.1.0"
authors = ["Apache Arrow <dev@arrow.apache.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apache Arrow Flight"
homepage = "https://github.com/apache/arrow-rs"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/apache/arrow-rs"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
cli = [
    "arrow-array/chrono-tz",
    "arrow-cast/prettyprint",
    "tonic/tls-webpki-roots",
    "tonic/gzip",
    "tonic/deflate",
    "tonic/zstd",
    "dep:anyhow",
    "dep:clap",
    "dep:tracing-log",
    "dep:tracing-subscriber",
    "dep:tokio",
]
default = []
flight-sql = [
    "dep:arrow-arith",
    "dep:arrow-data",
    "dep:arrow-ord",
    "dep:arrow-row",
    "dep:arrow-select",
    "dep:arrow-string",
    "dep:once_cell",
    "dep:paste",
]
flight-sql-experimental = ["flight-sql"]
tls-aws-lc = ["tonic/tls-aws-lc"]
tls-native-roots = ["tonic/tls-native-roots"]
tls-ring = ["tonic/tls-ring"]
tls-webpki-roots = ["tonic/tls-webpki-roots"]

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

[[bin]]
name = "flight_sql_client"
path = "src/bin/flight_sql_client.rs"
required-features = [
    "cli",
    "flight-sql",
    "tls-ring",
]

[[example]]
name = "flight_sql_server"
path = "examples/flight_sql_server.rs"
required-features = [
    "flight-sql",
    "tls-ring",
]

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

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

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

[[test]]
name = "flight_sql_client"
path = "tests/flight_sql_client.rs"
required-features = [
    "flight-sql",
    "tls-ring",
]

[[test]]
name = "flight_sql_client_cli"
path = "tests/flight_sql_client_cli.rs"
required-features = [
    "cli",
    "flight-sql",
    "tls-ring",
]

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.arrow-arith]
version = "58.1.0"
optional = true

[dependencies.arrow-array]
version = "58.1.0"

[dependencies.arrow-buffer]
version = "58.1.0"

[dependencies.arrow-cast]
version = "58.1.0"

[dependencies.arrow-data]
version = "58.1.0"
optional = true

[dependencies.arrow-ipc]
version = "58.1.0"

[dependencies.arrow-ord]
version = "58.1.0"
optional = true

[dependencies.arrow-row]
version = "58.1.0"
optional = true

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

[dependencies.arrow-select]
version = "58.1.0"
optional = true

[dependencies.arrow-string]
version = "58.1.0"
optional = true

[dependencies.base64]
version = "0.22"
features = ["std"]
default-features = false

[dependencies.bytes]
version = "1"
default-features = false

[dependencies.clap]
version = "4.4.6"
features = [
    "std",
    "derive",
    "env",
    "help",
    "error-context",
    "usage",
    "wrap_help",
    "color",
    "suggestions",
]
optional = true
default-features = false

[dependencies.futures]
version = "0.3"
features = ["alloc"]
default-features = false

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

[dependencies.paste]
version = "1.0"
optional = true

[dependencies.prost]
version = "0.14.1"
features = ["derive"]
default-features = false

[dependencies.prost-types]
version = "0.14.1"
default-features = false

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
]
optional = true
default-features = false

[dependencies.tonic]
version = "0.14.1"
features = [
    "transport",
    "codegen",
    "router",
]
default-features = false

[dependencies.tonic-prost]
version = "0.14.1"
default-features = false

[dependencies.tracing-log]
version = "0.2"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.1"
features = [
    "ansi",
    "env-filter",
    "fmt",
]
optional = true
default-features = false

[dev-dependencies.arrow-cast]
version = "58.1.0"
features = ["prettyprint"]

[dev-dependencies.assert_cmd]
version = "2.0.8"

[dev-dependencies.http]
version = "1.1.0"

[dev-dependencies.http-body]
version = "1.0.0"

[dev-dependencies.hyper-util]
version = "0.1"

[dev-dependencies.pin-project-lite]
version = "0.2"

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

[dev-dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
]
default-features = false

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

[dev-dependencies.tower]
version = "0.5.0"
features = ["util"]

[dev-dependencies.tracing-log]
version = "0.2"

[dev-dependencies.tracing-subscriber]
version = "0.3.1"
features = [
    "ansi",
    "env-filter",
    "fmt",
]
default-features = false

[dev-dependencies.uuid]
version = "1.10.0"
features = ["v4"]
