# 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.88"
name = "stac"
version = "0.16.5"
authors = ["Pete Gadomski <pete.gadomski@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for the SpatioTemporal Asset Catalog (STAC) specification"
homepage = "https://stac-utils.github.io/rustac"
readme = "README.md"
keywords = [
    "geospatial",
    "stac",
    "metadata",
    "geo",
]
categories = [
    "science",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stac-utils/rustac"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
geo = ["dep:geo"]
geoarrow = [
    "dep:geoarrow-array",
    "dep:geoarrow-schema",
    "dep:arrow-array",
    "dep:arrow-cast",
    "dep:arrow-json",
    "dep:arrow-schema",
    "dep:geo-traits",
    "dep:geo-types",
    "dep:wkb",
]
geoparquet = [
    "geoarrow",
    "dep:geoparquet",
    "dep:parquet",
]
std = []

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

[dependencies.arrow-array]
version = "57.0.0"
features = ["chrono-tz"]
optional = true

[dependencies.arrow-cast]
version = "57.0.0"
optional = true

[dependencies.arrow-json]
version = "57.0.0"
optional = true

[dependencies.arrow-schema]
version = "57.0.0"
optional = true

[dependencies.bytes]
version = "1.7"

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

[dependencies.cql2]
version = "0.5.0"

[dependencies.geo]
version = "0.32.0"
optional = true

[dependencies.geo-traits]
version = "0.3.0"
optional = true

[dependencies.geo-types]
version = "0.7.16"
optional = true

[dependencies.geoarrow-array]
version = "0.7.0"
optional = true

[dependencies.geoarrow-schema]
version = "0.7.0"
optional = true

[dependencies.geojson]
version = "0.24.1"

[dependencies.geoparquet]
version = "0.7.0"
optional = true

[dependencies.indexmap]
version = "2.10.0"
features = ["serde"]

[dependencies.log]
version = "0.4.25"

[dependencies.mime]
version = "0.3.17"

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

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.stac-derive]
version = "0.3.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1.40"

[dependencies.url]
version = "2.3"
features = ["serde"]

[dependencies.wkb]
version = "0.9.0"
optional = true

[dev-dependencies.assert-json-diff]
version = "2.0"

[dev-dependencies.bytes]
version = "1.7"

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.tokio]
version = "1.44"
features = ["macros"]

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