Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
src/ | H | 03-May-2022 | - | 990 | 697 | |
.appveyor.yml | H A D | 22-Oct-2016 | 507 | 19 | 15 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.gitignore | H A D | 22-Oct-2016 | 18 | 3 | 2 | |
.travis.yml | H A D | 25-Feb-2017 | 257 | 22 | 17 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.2 KiB | 34 | 31 | |
Cargo.toml.orig-cargo | H A D | 06-Jan-2018 | 741 | 24 | 19 | |
LICENSE-APACHE | H A D | 22-Oct-2016 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 22-Oct-2016 | 1 KiB | 26 | 22 | |
README.md | H A D | 06-Jan-2018 | 1.8 KiB | 51 | 37 |
README.md
1# fs2 2 3Extended utilities for working with files and filesystems in Rust. `fs2` 4requires Rust stable 1.8 or greater. 5 6[![Build Status](https://travis-ci.org/danburkert/fs2-rs.svg?branch=master)](https://travis-ci.org/danburkert/fs2-rs) 7[![Windows Build status](https://ci.appveyor.com/api/projects/status/iuvjv1aaaml0rntt/branch/master?svg=true)](https://ci.appveyor.com/project/danburkert/fs2-rs/branch/master) 8[![Documentation](https://docs.rs/fs2/badge.svg)](https://docs.rs/memmap) 9[![Crate](https://img.shields.io/crates/v/fs2.svg)](https://crates.io/crates/memmap) 10 11## Features 12 13- [x] file descriptor duplication. 14- [x] file locks. 15- [x] file (pre)allocation. 16- [x] file allocation information. 17- [x] filesystem space usage information. 18 19## Platforms 20 21`fs2` should work on any platform supported by 22[`libc`](https://github.com/rust-lang-nursery/libc#platforms-and-documentation). 23 24`fs2` is continuously tested on: 25 * `x86_64-unknown-linux-gnu` (Linux) 26 * `i686-unknown-linux-gnu` 27 * `x86_64-apple-darwin` (OSX) 28 * `i686-apple-darwin` 29 * `x86_64-pc-windows-msvc` (Windows) 30 * `i686-pc-windows-msvc` 31 * `x86_64-pc-windows-gnu` 32 * `i686-pc-windows-gnu` 33 34## Benchmarks 35 36Simple benchmarks are provided for the methods provided. Many of these 37benchmarks use files in a temporary directory. On many modern Linux distros the 38default temporary directory, `/tmp`, is mounted on a tempfs filesystem, which 39will have different performance characteristics than a disk-backed filesystem. 40The temporary directory is configurable at runtime through the environment (see 41[`env::temp_dir`](https://doc.rust-lang.org/stable/std/env/fn.temp_dir.html)). 42 43## License 44 45`fs2` is primarily distributed under the terms of both the MIT license and the 46Apache License (Version 2.0). 47 48See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT) for details. 49 50Copyright (c) 2015 Dan Burkert. 51