[[bench]]
harness = false
name = "benchmark"
path = "benches/benchmark.rs"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.memmap2]
version = "0.9"
[dev-dependencies.proptest]
version = "1.4"
[lib]
name = "safetensors"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = """
Provides functions to read and write safetensors which aim to be safer than
their PyTorch counterpart.
The format is 8 bytes which is an unsized int, being the size of a JSON header,
the JSON header refers the `dtype` the `shape` and `data_offsets` which are the offsets
for the values in the rest of the file.
"""
documentation = "https://docs.rs/safetensors/"
edition = "2021"
exclude = ["rust-toolchain", "target/*", "Cargo.lock"]
homepage = "https://github.com/huggingface/safetensors"
keywords = ["safetensors", "huggingface", "Tensors", "Pytorch", "Tensorflow"]
license = "Apache-2.0"
name = "safetensors"
readme = "README.md"
repository = "https://github.com/huggingface/safetensors"
version = "0.4.5"