[package] name = "pystse-safetensors" version = "0.0.1" edition = "2021" homepage = "https://gitee.com/xiatian0716/safetensors" repository = "https://gitee.com/xiatian0716/safetensors" documentation = "https://docs.rs/pystse-safetensors/" license = "Apache-2.0" keywords = ["safetensors", "huggingface", "Tensors", "Pytorch", "Tensorflow"] readme = "./README.md" 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. """ exclude = ["rust-toolchain", "target/*", "Cargo.lock"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "pystse_safetensors" path = "src/lib.rs" [dependencies] serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" [dev-dependencies] criterion = "0.4" memmap2 = "0.5" proptest = "1.1" [[bench]] name = "benchmark" harness = false