Vigia

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.02026-06-09 08:34:43 UTC
0.7.02025-11-19 15:14:57 UTC
0.6.22025-08-08 13:11:10 UTC
0.6.12025-08-06 09:37:00 UTC
0.6.02025-06-23 08:05:11 UTC
0.5.32025-02-26 09:11:59 UTC
0.5.22025-01-08 17:39:49 UTC
0.5.12025-01-07 10:09:02 UTC
0.5.02025-01-02 16:36:06 UTC
0.4.52024-09-05 13:41:34 UTC
0.4.42024-08-05 12:26:28 UTC
0.4.32024-04-15 15:53:57 UTC
0.4.22024-01-23 09:02:21 UTC
0.4.12023-11-27 11:12:47 UTC
0.4.02023-10-06 10:48:54 UTC
0.3.32023-08-23 11:04:24 UTC
0.3.22023-08-07 12:59:09 UTC
0.3.12023-04-25 08:24:12 UTC
0.3.02023-03-05 23:48:01 UTC
0.2.82023-01-16 12:45:17 UTC

显示 22 个版本中最新的 20 个。 JSON

版本兼容性

声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。

运行时最新兼容版本
rust 1.630.5.2
rust 1.700.5.2
rust 1.750.5.3
rust 1.800.8.0
rust 1.850.8.0
rust 1.900.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" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

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 开始跟踪此软件包以来,尚未观察到变更。

相关软件包

用于 README 的徽章

展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:

[![version](https://vigia.coredls.cloud/badge/crates/safetensors/version.svg)](https://vigia.coredls.cloud/crates/safetensors)
[![maintained](https://vigia.coredls.cloud/badge/crates/safetensors/maintained.svg)](https://vigia.coredls.cloud/crates/safetensors)
[![status](https://vigia.coredls.cloud/badge/crates/safetensors/status.svg)](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}