# 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 = "tuitab"
version = "0.3.5"
authors = ["denisotree"]
build = false
exclude = [
    "packaging/",
    ".github/",
    "docs/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal tabular data explorer — CSV/JSON/Parquet/Excel/SQLite viewer with filtering, sorting, pivot tables, and charts"
homepage = "https://github.com/denisotree/tuitab"
documentation = "https://docs.rs/tuitab"
readme = "README.md"
keywords = [
    "tui",
    "csv",
    "data",
    "terminal",
    "tabular",
]
categories = [
    "command-line-utilities",
    "visualization",
]
license = "Apache-2.0"
repository = "https://github.com/denisotree/tuitab"

[package.metadata.docs.rs]
features = ["bundled-sqlite"]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bundled-sqlite = ["rusqlite/bundled"]

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

[[bin]]
name = "ttab"
path = "src/bin/ttab.rs"

[[bin]]
name = "ttb"
path = "src/bin/ttb.rs"

[[bin]]
name = "tuitab"
path = "src/main.rs"

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

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

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

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

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

[dependencies.arboard]
version = "3"

[dependencies.bincode]
version = "1"

[dependencies.calamine]
version = "0.22"

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

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.color-eyre]
version = "0.6"

[dependencies.crossterm]
version = "0.28"

[dependencies.csv]
version = "1.3"

[dependencies.duckdb]
version = "1"
features = ["bundled"]

[dependencies.libc]
version = "0.2"

[dependencies.polars]
version = "0.53"
features = [
    "csv",
    "lazy",
    "dtype-date",
    "dtype-datetime",
    "strings",
    "json",
    "parquet",
    "serde",
    "timezones",
    "pivot",
    "is_in",
]

[dependencies.polars-ops]
version = "0.53"
features = ["pivot"]

[dependencies.ratatui]
version = "0.30"

[dependencies.regex]
version = "1"

[dependencies.rusqlite]
version = "0.31"
features = []

[dependencies.rust_xlsxwriter]
version = "0.80"

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

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

[dependencies.tempfile]
version = "3"

[dependencies.unicode-width]
version = "0.2"

[profile.release]
opt-level = 3
lto = "thin"
strip = true
