crates.io · crates:dirs
dirs 活跃
A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS.
| 最新稳定版本 | 7.0.0 |
|---|---|
| 发布时间 | 2026-09-05 17:32:15 UTC |
| 安装 | cargo add dirs |
| 最低 Rust 版本 (rust-version) | 未声明 |
| 许可证 | MIT OR Apache-2.0 |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-10-08 14:54:45 UTC |
| 来源 | api.osv.dev, crates.io |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-09-05 17:32:15 UTC · 33 天前 |
| 过去 12 个月的稳定版本数 | 1 |
| 已发布版本数 | 21 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
7.0.0 | 2026-09-05 17:32:15 UTC |
6.0.0 | 2025-01-12 17:19:23 UTC |
5.0.1 | 2023-04-30 22:02:25 UTC |
5.0.0 | 2023-03-19 14:01:45 UTC |
4.0.0 | 2021-09-15 21:59:25 UTC |
3.0.2 | 2021-04-23 22:34:16 UTC |
3.0.1 | 2020-07-04 18:21:35 UTC |
3.0.0 | 2020-06-21 03:16:46 UTC |
2.0.2 | 2019-07-28 12:41:32 UTC |
2.0.1 | 2019-05-30 22:28:40 UTC |
2.0.0 | 2019-05-25 22:40:03 UTC |
1.0.5 | 2019-02-27 01:17:27 UTC |
1.0.4 | 2018-09-23 21:30:48 UTC |
1.0.3 | 2018-08-10 17:49:36 UTC |
1.0.2 | 2018-06-25 00:02:08 UTC |
1.0.1 | 2018-06-25 00:01:06 UTC |
1.0.0 | 2018-06-24 23:38:44 UTC |
0.3.1 | 2015-12-26 15:07:44 UTC |
0.3.0 | 2015-12-19 20:46:18 UTC |
0.2.0 | 2015-12-18 01:49:53 UTC |
显示 21 个版本中最新的 20 个。 JSON
把这些数据交给你的 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" } } }常见问题
dirs 的最新版本是什么?
dirs 的最新稳定版本是 7.0.0,发布于 2026-09-05。Vigia 于 2026-10-08 核实。
如何安装 dirs 的最新版本?
运行 cargo add dirs。最新稳定版本是 7.0.0(2026-10-08 核实)。
dirs 是否已弃用?
否。注册表中 dirs 未被标记为已弃用。
dirs 需要哪个版本的 Rust?
dirs 7.0.0 未声明对 Rust 版本的要求。
dirs 7.0.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 dirs 7.0.0。
dirs 是否仍在维护?
dirs 在过去 12 个月内发布了 1 个稳定版本,最近一次在 33 天前。活跃度:活跃。
观察到的变更
自 Vigia 开始跟踪此软件包以来,尚未观察到变更。
相关软件包
- is-terminal
- windows
- windows-strings
- async-channel
- native-tls
- anstyle-wincon
- wasm-bindgen-futures
- hyper-tls
- arc-swap
- atty
- concurrent-queue
- quinn-proto
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/crates/dirs) [](https://vigia.coredls.cloud/crates/dirs) [](https://vigia.coredls.cloud/crates/dirs)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/crates/dirs
GET https://vigia.coredls.cloud/v1/packages/crates/dirs/versions/{version}