$ safetensors
v0.8.0MAJOR UPDATEProvides 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.
Downloads: 15.2M
Recent: 5.2M
Versions: 22
Updated: June 9, 2026
Latest Update Summary
Crate
Name: safetensors New version: 0.8.0 Release date: 2026-06-09T08:34:43.361780Z
Crate readme
Short description
Long description
Features
Code Examples
Links
https://docs.rs/safetensors/ https://api.github.com/repos/safetensors/safetensors/releases/336432175
Release info
Release version:
Release description
Code Examples
Minor update: 0.7.0 → 0.8.0
$ DOWNLOADS TREND
9.0M15.2M
$ VERSION HISTORY
v0.8.0June 9, 2026
v0.7.0November 19, 2025
$ LINKS
$ INSTALL
cargo add safetensorsOr add to Cargo.toml: safetensors = "0.8.0"