crates.io · crates:safetensors
safetensors 活跃
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.
| 最新稳定版本 | 0.8.0 |
|---|---|
| 发布时间 | 2026-06-09 08:34:43 UTC |
| 安装 | cargo add safetensors |
| 最低 Rust 版本 (rust-version) | Rust ≥ 1.80 |
| 许可证 | Apache-2.0 |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-10-09 15:24:51 UTC |
| 来源 | api.osv.dev, crates.io |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-06-09 08:34:43 UTC · 122 天前 |
| 过去 12 个月的稳定版本数 | 2 |
| 已发布版本数 | 22 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
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 |
显示 22 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
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 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
safetensors 的最新版本是什么?
safetensors 的最新稳定版本是 0.8.0,发布于 2026-06-09。Vigia 于 2026-10-09 核实。
如何安装 safetensors 的最新版本?
运行 cargo add safetensors。最新稳定版本是 0.8.0(2026-10-09 核实)。
safetensors 是否已弃用?
否。注册表中 safetensors 未被标记为已弃用。
safetensors 需要哪个版本的 Rust?
safetensors 0.8.0 声明的要求为:Rust ≥ 1.80。
safetensors 0.8.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 safetensors 0.8.0。
safetensors 是否仍在维护?
safetensors 在过去 12 个月内发布了 2 个稳定版本,最近一次在 122 天前。活跃度:活跃。
观察到的变更
自 Vigia 开始跟踪此软件包以来,尚未观察到变更。
相关软件包
- rmcp-macros
- if-addrs
- by_address
- runas
- keyring
- glutin_egl_sys
- tokio-io
- derive_utils
- cranelift-bitset
- chumsky
- fst
- gdkwayland-sys
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/crates/safetensors) [](https://vigia.coredls.cloud/crates/safetensors) [](https://vigia.coredls.cloud/crates/safetensors)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/crates/safetensors
GET https://vigia.coredls.cloud/v1/packages/crates/safetensors/versions/{version}