# 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 = "safetensors" version = "0.4.5" build = false exclude = [ "rust-toolchain", "target/*", "Cargo.lock", ] autobins = false autoexamples = false autotests = false autobenches = 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. """ homepage = "https://github.com/huggingface/safetensors" documentation = "https://docs.rs/safetensors/" readme = "README.md" keywords = [ "safetensors", "huggingface", "Tensors", "Pytorch", "Tensorflow", ] license = "Apache-2.0" repository = "https://github.com/huggingface/safetensors" [lib] name = "safetensors" path = "src/lib.rs" [[bench]] name = "benchmark" path = "benches/benchmark.rs" harness = false [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.memmap2] version = "0.9" [dev-dependencies.proptest] version = "1.4"