| Crates.io | cross-fs |
| lib.rs | cross-fs |
| version | 0.1.0 |
| created_at | 2025-11-11 12:54:53.971448+00 |
| updated_at | 2025-11-11 12:54:53.971448+00 |
| description | A cross-platform std::fs::File extension |
| homepage | |
| repository | https://github.com/YuFireWhisper/cross-fs.git |
| max_upload_size | |
| id | 1927183 |
| size | 28,980 |
This project provides cross-platform extensions for std::fs::File, avoiding the hassle of conditional compilation when writing code for different operating systems. We also provide support for Direct I/O.
cross-fs::avec!(n).PositionedExt trait.VectoredExt trait, with implementation for Windows code when Direct I/O is enabled (since Vectored I/O is only available on Windows when Direct I/O is enabled, the standard library doesn't implement it by default, and this project fills that gap).| Direct I/O | Positioned I/O | Vectored I/O | |
|---|---|---|---|
| Linux | Full | Full | Full |
| Windows | Full | Full | Must enable Direct I/O |
Since I develop on WSL, I can only design code for Linux and Windows. If you're willing to help add support for other platforms, PRs are very welcome!
Suggestions for improvements or Pull Requests are welcome. If you think the crate should add new features or if there are any bugs that need fixing, please let me know through an issue, and I'll do my best to fix and implement them.
This project is licensed under either of:
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.