crates.io · crates:safetensors
safetensors active
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.
| Latest stable version | 0.8.0 |
|---|---|
| Published | 2026-06-09 08:34:43 UTC |
| Install | cargo add safetensors |
| Minimum Rust version (rust-version) | Rust ≥ 1.80 |
| License | Apache-2.0 |
| Advisories on latest version | none known |
| Last verified | 2026-10-09 15:24:51 UTC |
| Sources | api.osv.dev, crates.io |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-06-09 08:34:43 UTC · 122 days ago |
| Stable releases in the last 12 months | 2 |
| Published versions | 22 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
0.8.0 | 2026-06-09 08:34:43 UTC |
0.7.0 | 2025-11-19 15:14:57 UTC |
0.6.2 | 2025-08-08 13:11:10 UTC |
0.6.1 | 2025-08-06 09:37:00 UTC |
0.6.0 | 2025-06-23 08:05:11 UTC |
0.5.3 | 2025-02-26 09:11:59 UTC |
0.5.2 | 2025-01-08 17:39:49 UTC |
0.5.1 | 2025-01-07 10:09:02 UTC |
0.5.0 | 2025-01-02 16:36:06 UTC |
0.4.5 | 2024-09-05 13:41:34 UTC |
0.4.4 | 2024-08-05 12:26:28 UTC |
0.4.3 | 2024-04-15 15:53:57 UTC |
0.4.2 | 2024-01-23 09:02:21 UTC |
0.4.1 | 2023-11-27 11:12:47 UTC |
0.4.0 | 2023-10-06 10:48:54 UTC |
0.3.3 | 2023-08-23 11:04:24 UTC |
0.3.2 | 2023-08-07 12:59:09 UTC |
0.3.1 | 2023-04-25 08:24:12 UTC |
0.3.0 | 2023-03-05 23:48:01 UTC |
0.2.8 | 2023-01-16 12:45:17 UTC |
Showing the 20 most recent of 22 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
rust 1.63 | 0.5.2 |
rust 1.70 | 0.5.2 |
rust 1.75 | 0.5.3 |
rust 1.80 | 0.8.0 |
rust 1.85 | 0.8.0 |
rust 1.90 | 0.8.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of safetensors?
The latest stable version of safetensors is 0.8.0, published on 2026-06-09. Verified by Vigia on 2026-10-09.
How do I install the latest version of safetensors?
Run cargo add safetensors. The latest stable version is 0.8.0 (verified 2026-10-09).
Is safetensors deprecated?
No. safetensors is not marked as deprecated in the registry.
Which Rust version does safetensors require?
safetensors 0.8.0 declares this requirement: Rust ≥ 1.80.
Does safetensors 0.8.0 have known vulnerabilities?
No known advisories affect safetensors 0.8.0 according to the data Vigia checks.
Is safetensors still maintained?
safetensors published 2 stable releases in the last 12 months; the most recent was 122 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- rmcp-macros
- if-addrs
- by_address
- runas
- keyring
- glutin_egl_sys
- tokio-io
- derive_utils
- cranelift-bitset
- chumsky
- fst
- gdkwayland-sys
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/crates/safetensors) [](https://vigia.coredls.cloud/crates/safetensors) [](https://vigia.coredls.cloud/crates/safetensors)
For agents
GET https://vigia.coredls.cloud/v1/packages/crates/safetensors
GET https://vigia.coredls.cloud/v1/packages/crates/safetensors/versions/{version}