ztensor-compat 2.0.0

Foreign tensor formats projected into the zTensor object model
Documentation
# 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.87"
name = "ztensor-compat"
version = "2.0.0"
authors = ["In Gim <in.gim@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foreign tensor formats projected into the zTensor object model"
readme = "README.md"
keywords = [
    "tensor",
    "safetensors",
    "gguf",
    "onnx",
    "hdf5",
]
categories = [
    "encoding",
    "parser-implementations",
    "science",
]
license = "MIT"
repository = "https://github.com/pie-project/ztensor"

[package.metadata.docs.rs]
all-features = true

[features]
default = [
    "safetensors",
    "gguf",
]
gguf = []
hdf5 = ["dep:flate2"]
npz = ["dep:zip"]
onnx = []
pickle = ["dep:zip"]
safetensors = ["dep:serde_json"]

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

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

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

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

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

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

[dependencies.memmap2]
version = "0.9"

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

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

[dependencies.ztensor]
version = "2.0.0"

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