# 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 = "alimentar"
version = "0.2.0"
authors = ["paiml"]
build = false
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"

[features]
cli = ["dep:clap"]
default = [
    "local",
    "tokio-runtime",
    "cli",
    "mmap",
    "shuffle",
    "provenance",
]
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"]
http = ["dep:reqwest"]
local = []
mmap = ["dep:memmap2"]
provenance = ["dep:sha2"]
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 = "dataloader_batching"
path = "examples/dataloader_batching.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytes]
version = "1"

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

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

[dependencies.getrandom]
version = "0.2"
features = ["js"]
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.parquet]
version = "53"
features = [
    "arrow",
    "snap",
]
default-features = false

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

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

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

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

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

[dependencies.serde_json]
version = "1"

[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.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.criterion]
version = "0.5"
features = ["html_reports"]

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

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

[lints.clippy]
cognitive_complexity = "allow"
expect_used = "deny"
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"
redundant_pub_crate = "allow"
significant_drop_tightening = "allow"
too_many_lines = "allow"
unwrap_used = "deny"

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

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

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

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