# 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-io"
version = "0.1.0"
authors = ["Durable Programming LLC"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "I/O utilities for dsq - handles reading and writing to disk, STDIN, STDOUT"
readme = "README.md"
keywords = [
    "io",
    "file",
    "stdin",
    "stdout",
]
categories = ["filesystem"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/durableprogramming/dsq"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.dsq-shared]
version = "0.1.0"

[dependencies.polars]
version = "0.51"
features = [
    "lazy",
    "csv",
    "json",
    "ipc",
    "strings",
    "dtype-datetime",
    "dtype-date",
    "dtype-time",
    "describe",
    "rows",
]
default-features = false

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.apache-avro]
version = "0.21"

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

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

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

[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
