# 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 = "pystse-safetensors" version = "0.0.1" exclude = [ "rust-toolchain", "target/*", "Cargo.lock", ] 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://gitee.com/xiatian0716/safetensors" documentation = "https://docs.rs/pystse-safetensors/" readme = "./README.md" keywords = [ "safetensors", "huggingface", "Tensors", "Pytorch", "Tensorflow", ] license = "Apache-2.0" repository = "https://gitee.com/xiatian0716/safetensors" [lib] name = "pystse_safetensors" path = "src/lib.rs" [[bench]] name = "benchmark" harness = false [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dev-dependencies.criterion] version = "0.4" [dev-dependencies.memmap2] version = "0.5" [dev-dependencies.proptest] version = "1.1"