# 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"
rust-version = "1.75"
name = "aprender-data"
version = "0.51.0"
authors = ["paiml"]
build = false
exclude = [
    "tests/",
    "benches/",
    "docs/",
    ".github/",
    "book/",
    ".pmat/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data Loading, Distribution and Tooling in Pure Rust"
readme = "README.md"
keywords = [
    "data",
    "ml",
    "arrow",
    "parquet",
    "dataset",
]
categories = [
    "data-structures",
    "science",
]
license = "MIT"
repository = "https://github.com/paiml/alimentar"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.release]
shared-version = true

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"

[features]
cli = [
    "dep:clap",
    "dep:crossterm",
]
default = [
    "local",
    "tokio-runtime",
    "cli",
    "repl",
    "mmap",
    "shuffle",
    "provenance",
]
dhat-heap = ["dep:dhat"]
doctest = [
    "dep:chrono",
    "dep:regex",
    "dep:walkdir",
]
format-encryption = [
    "dep:aes-gcm",
    "dep:argon2",
    "dep:x25519-dalek",
    "dep:hkdf",
    "dep:sha2",
    "dep:rand_core",
    "dep:getrandom",
]
format-signing = [
    "dep:ed25519-dalek",
    "dep:getrandom",
]
format-streaming = ["mmap"]
hf-hub = [
    "http",
    "dep:base64",
    "dep:hex",
    "dep:sha2",
]
http = ["dep:reqwest"]
local = []
mmap = ["dep:memmap2"]
provenance = ["dep:sha2"]
repl = [
    "cli",
    "dep:reedline",
    "dep:nu-ansi-term",
]
s3 = [
    "dep:aws-sdk-s3",
    "dep:aws-config",
    "tokio-runtime",
]
shuffle = ["dep:rand"]
tokio-runtime = ["dep:tokio"]
wasm = [
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:js-sys",
    "dep:getrandom",
]

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

[[bin]]
name = "alimentar"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

[[example]]
name = "doctest_extraction"
path = "examples/doctest_extraction.rs"
required-features = ["doctest"]

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

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

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

[[example]]
name = "hub_publishing"
path = "examples/hub_publishing.rs"
required-features = ["hf-hub"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.10"
optional = true

[dependencies.argon2]
version = "0.5"
optional = true

[dependencies.arrow]
version = "57"
features = [
    "prettyprint",
    "ipc",
]
default-features = false

[dependencies.arrow-csv]
version = "57"

[dependencies.arrow-json]
version = "57"

[dependencies.aws-config]
version = "1"
optional = true

[dependencies.aws-sdk-s3]
version = "1"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"

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

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

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
optional = true

[dependencies.getrandom]
version = "0.2"
features = ["js"]
optional = true

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.lz4_flex]
version = "0.11"

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.nu-ansi-term]
version = "0.50"
optional = true

[dependencies.parquet]
version = "57"
features = [
    "arrow",
    "snap",
    "zstd",
]
default-features = false

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rand_core]
version = "0.6"
optional = true

[dependencies.reedline]
version = "0.37"
optional = true

[dependencies.regex]
version = "1"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "blocking",
    "json",
    "multipart",
]
optional = true
default-features = false

[dependencies.rmp-serde]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9.34"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "fs",
    "sync",
    "rt-multi-thread",
]
optional = true

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

[dependencies.walkdir]
version = "2"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]
optional = true

[dependencies.zstd]
version = "0.13"

[dev-dependencies.assert_cmd]
version = "2"

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

[dev-dependencies.jugar-probar]
version = "1.0.1"

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
approx_constant = "allow"
bool_comparison = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
cognitive_complexity = "allow"
expect_used = "allow"
fallible_impl_from = "warn"
len_zero = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
panic = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
significant_drop_tightening = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unreachable = "warn"
unwrap_used = "allow"

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

[lints.clippy.correctness]
level = "deny"
priority = -1

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

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

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

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[profile.bench]
lto = true
codegen-units = 1

[profile.dev]
panic = "abort"

[profile.release]
lto = true
codegen-units = 1
strip = true

[profile.test]
opt-level = 1
