• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/H03-May-2022-990697

.appveyor.ymlH A D22-Oct-2016507 1915

.cargo-checksum.jsonH A D03-May-202289 11

.gitignoreH A D22-Oct-201618 32

.travis.ymlH A D25-Feb-2017257 2217

Cargo.tomlH A D01-Jan-19701.2 KiB3431

Cargo.toml.orig-cargoH A D06-Jan-2018741 2419

LICENSE-APACHEH A D22-Oct-201610.6 KiB202169

LICENSE-MITH A D22-Oct-20161 KiB2622

README.mdH A D06-Jan-20181.8 KiB5137

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