# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

[package]
name = "arrow-array"
version = { workspace = true }
description = "Array abstractions for Apache Arrow"
homepage = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
license = "Apache-2.0 AND MIT"
keywords = { workspace = true }
include = [
    "benches/*.rs",
    "src/**/*.rs",
    "Cargo.toml",
    "LICENSE.txt",
    "LICENSE-MIT",
    "NOTICE.txt",
]
edition = { workspace = true }
rust-version = { workspace = true }

[lib]
name = "arrow_array"
bench = false

[target.'cfg(target_arch = "wasm32")'.dependencies]
ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }

[dependencies]
arrow-buffer = { workspace = true }
arrow-schema = { workspace = true }
arrow-data = { workspace = true }
chrono = { workspace = true }
chrono-tz = { version = "0.10", optional = true }
futures = { version = "0.3", optional = true }
num-complex = { version = "0.4.6", default-features = false, features = ["std"] }
num-integer = { version = "0.1.46", default-features = false, features = ["std"] }
num-traits = { version = "0.2.19", default-features = false, features = ["std"] }
half = { version = "2.1", default-features = false, features = ["num-traits"] }
hashbrown = { version = "0.17.0", default-features = false }

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

[features]
async = ["dep:futures"]
ffi = ["arrow-schema/ffi", "arrow-data/ffi"]
force_validate = []
# Enable memory tracking support
pool = ["arrow-buffer/pool", "arrow-data/pool"]

[dev-dependencies]
rand = { version = "0.9", default-features = false, features = ["std", "std_rng", "thread_rng"] }
criterion = { workspace = true, default-features = false }

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

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

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

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

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

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

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

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