# 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"
name = "dsq-core"
version = "0.1.0"
authors = ["Durable Programming LLC"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core functionality for dsq - data processing with jq syntax"
readme = "README.md"
keywords = [
    "data",
    "jq",
    "query",
    "dataframe",
    "processing",
]
categories = [
    "command-line-utilities",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/durableprogramming/dsq"

[features]
all-formats = [
    "csv",
    "json",
    "parquet",
    "avro",
]
avro = ["polars/avro"]
csv = []
default = []
filter = []
io = []
json = []
parquet = []
rand = []
repl = []

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bytes]
version = "1.5"

[dependencies.dsq-filter]
version = "0.1.0"
default-features = false

[dependencies.dsq-formats]
version = "0.1.0"
features = [
    "csv",
    "json",
]
default-features = false

[dependencies.dsq-io]
version = "0.1.0"
default-features = false

[dependencies.dsq-parser]
version = "0.1.0"
default-features = false

[dependencies.dsq-shared]
version = "0.1.0"
default-features = false

[dependencies.either]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.indexmap]
version = "2.1"

[dependencies.itertools]
version = "0.12"

[dependencies.log]
version = "0.4"

[dependencies.nom]
version = "8.0"

[dependencies.rand]
version = "0.9"
features = ["std_rng"]

[dependencies.regex]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.smallvec]
version = "1.11"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.8"

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

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

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.arrow]
version = "54"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dsq-filter]
version = "0.1.0"
features = ["rand"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dsq-formats]
version = "0.1.0"
features = [
    "csv",
    "json",
    "parquet",
    "avro",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.once_cell]
version = "1.19"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.polars]
version = "0.51"
features = [
    "lazy",
    "csv",
    "json",
    "ipc",
    "strings",
    "dtype-datetime",
    "dtype-date",
    "dtype-time",
    "describe",
    "rows",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.polars-ops]
version = "0.51"
features = ["pivot"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.35"
features = [
    "rt",
    "macros",
    "fs",
    "io-util",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.dsq-filter]
version = "0.1.0"
features = []
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.dsq-formats]
version = "0.1.0"
features = []
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.dsq-shared]
version = "0.1.0"
features = []
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.polars]
version = "0.51"
features = [
    "lazy",
    "csv",
    "json",
    "ipc",
    "strings",
    "dtype-datetime",
    "dtype-date",
    "dtype-time",
    "describe",
    "rows",
]
default-features = false

[lints.clippy]
nursery = "allow"
pedantic = "allow"

[lints.clippy.approx_constant]
level = "allow"
priority = 2

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

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 2
