Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Same Volume Checker
使用中文的开发者可以跳转至下方的中文文档。
A lightweight Windows utility for determining if two paths reside on the same storage volume.
Features
- 🚀 Fast volume GUID comparison using Windows API
- 📌 Automatically handles path normalization and mount point resolution
- 🔄 Built-in volume mapping cache with manual refresh
- 🛡️ Safe error handling for invalid paths
- 💽 Supports physical drives, VHD(X) mounts, and network paths (UNC)
Installation
Add to your Cargo.toml:
cargo add samevol
Usage
Basic example:
use is_same_vol;
Force refresh volume mappings:
use reinitialize_volume_map;
Contributing
Issues and PRs are welcome!
Note: Due to the limitations of the maintainer's English proficiency, the existing code comments are primarily in Chinese, the maintainer's language.
Copyright and License
Apache 2.0 © 2025 爱佐 (Ayrzo)
This repository is licensed under the Apache 2.0 License. See the LICENSE file for details.
AI usage notice: Portions of the codebase, comments, and documentation were written with assistance from DeepSeek AI.
同一存储卷检查器
轻量级 Windows 工具库,用于检测两个路径是否位于同一存储卷。
功能特性
- 🚀 基于 Windows API 的快速卷 GUID 比较
- 📌 自动处理路径规范化和挂载点解析
- 🔄 内置卷映射缓存支持手动刷新
- 🛡️ 安全的无效路径错误处理
- 💽 支持物理驱动器、VHD(X) 虚拟硬盘及网络路径 (UNC)
安装
添加到 Cargo.toml:
cargo add samevol
使用示例
基础用法:
use is_same_vol;
强制刷新卷映射:
use reinitialize_volume_map;
贡献指南
欢迎提交 issue 和 PR!
著作权和开源协议
Apache 2.0 © 2025 爱佐
本存储库根据 Apache 2.0 许可证授权。有关详细信息,请参阅 LICENSE 文件。
人工智能使用说明:部分代码、注释和文档是在 深度求索 DeepSeek AI 的辅助下编写的。