# 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 = "hdf5-pure"
version = "0.2.0"
build = "build.rs"
exclude = ["tests/fixtures/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust HDF5 writer library (WASM-compatible, no C dependencies)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/stephenberry/hdf5-pure"

[features]
checksum = []
default = [
    "std",
    "checksum",
    "deflate",
]
deflate = ["flate2"]
fast-checksum = ["crc32fast"]
fast-deflate = ["flate2/zlib-ng"]
matio-crosscheck = ["serde"]
mmap = ["memmap2"]
parallel = ["rayon"]
provenance = ["sha2"]
serde = [
    "dep:serde",
    "std",
]
std = []
zfp = []

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

[[example]]
name = "matlab_fixtures"
path = "examples/matlab_fixtures.rs"
required-features = ["serde"]

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

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

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

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

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

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

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

[dependencies.byteorder]
version = "1"
default-features = false

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

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

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

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10"
optional = true
default-features = false

[dev-dependencies.hdf5]
version = "0.12"
features = [
    "static",
    "zlib",
]
package = "hdf5-metno"

[dev-dependencies.ndarray]
version = "0.16"

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

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

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