ztensor 1.2.1

Unified, zero-copy, and safe I/O for deep learning formats
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"
name = "ztensor"
version = "1.2.1"
authors = ["In Gim <in.gim@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified, zero-copy, and safe I/O for deep learning formats"
readme = "README.md"
license = "MIT"
repository = "https://github.com/pie-project/ztensor"

[features]
all-formats = [
    "safetensors",
    "pickle",
    "gguf",
    "npz",
    "onnx",
    "hdf5",
]
cffi = ["dep:libc"]
default = []
gguf = []
hdf5 = []
npz = ["dep:zip"]
onnx = []
pickle = ["dep:zip"]
python = [
    "dep:pyo3",
    "dep:numpy",
    "all-formats",
]
safetensors = ["dep:safetensors"]

[lib]
name = "ztensor"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

[dependencies.bytemuck]
version = "1.16"
features = ["derive"]

[dependencies.ciborium]
version = "0.2"

[dependencies.crc32c]
version = "0.6.8"

[dependencies.half]
version = "2.4"
features = ["bytemuck"]

[dependencies.hex]
version = "0.4"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.memmap2]
version = "0.9"

[dependencies.numpy]
version = "0.24"
optional = true

[dependencies.pyo3]
version = "0.24"
features = ["extension-module"]
optional = true

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

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

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.zstd]
version = "0.13"

[dev-dependencies.bytemuck]
version = "1.16"
features = ["derive"]

[dev-dependencies.half]
version = "2.4"
features = ["bytemuck"]

[dev-dependencies.safetensors]
version = "0.4"

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

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

[profile.release]
lto = "fat"
codegen-units = 1