# 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 = "nirs4all-datasets-core"
version = "0.3.5"
authors = ["Gregory Beurier <beurier@cirad.fr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Resolve + version-pinned download + SHA-256 verify + cache core for the nirs4all-datasets reference bank (Dataverse / Zenodo / figshare / URL). Pure acquisition + integrity; no scientific stack."
homepage = "https://github.com/GBeurier/nirs4all-datasets"
readme = false
license = "CECILL-2.1 OR AGPL-3.0-or-later"
repository = "https://github.com/GBeurier/nirs4all-datasets"

[features]
default = [
    "net",
    "prepare",
]
net = [
    "dep:ureq",
    "dep:directories",
    "dep:zip",
]
prepare = [
    "net",
    "dep:nirs4all-formats",
    "dep:nirs4all-io",
]

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

[dependencies.directories]
version = "5"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.nirs4all-formats]
version = "0.2.2"
optional = true

[dependencies.nirs4all-io]
version = "0.1.7"
optional = true

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

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "float_roundtrip",
]

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.zip]
version = "2"
features = ["deflate"]
optional = true
default-features = false

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