# 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"
name = "dta"
version = "0.5.1"
build = false
exclude = [
    "precommit-check.ps1",
    "profile.sh",
    "profile.ps1",
    ".github/",
    "plans/",
    "benches/data/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust streaming reader and writer for Stata's DTA file format (every released version, 102-119), plus a parser and reader for Stata dictionary (.dct) files."
homepage = "https://github.com/almus-the-dan/dta"
readme = "README.md"
keywords = [
    "stata",
    "dta",
    "data",
    "statistics",
]
categories = [
    "parser-implementations",
    "encoding",
    "science",
]
license = "MIT"
repository = "https://github.com/almus-the-dan/dta"

[features]
chrono = ["dep:chrono"]
tokio = ["dep:tokio"]

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

[[example]]
name = "profile"
path = "examples/profile.rs"

[[example]]
name = "profile_report"
path = "examples/profile_report.rs"

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

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

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

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

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

[[bench]]
name = "roundtrip"
path = "benches/roundtrip.rs"
harness = false

[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.encoding_rs]
version = "0.8.35"

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "fs",
]
optional = true

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

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

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.float-cmp]
version = "0.10.0"

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "macros",
    "rt",
]

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
missing_debug_implementations = "warn"
rust_2018_idioms = "warn"

[profile.profiling]
debug = 1
inherits = "release"
