gecko-dev/third_party/rust/fs2
Nathan Froyd 65e7b0bbd1 Bug 1485409 - update crates to dispense with winapi 0.2.8 requirement; r=glandium
winapi 0.2.8 is used by a number of crates in our dependency graph.  The
newest version of winapi is 0.3.4, which is a significant restructuring
and also more amenable to further development, e.g. adding AArch64
support.  This patch does the easy work of updating as many things as
possible to winapi 0.3.4 via a simple `cargo update`:

cargo update -p atty:0.2.2 -p fs2 -p msdos_time -p parking_lot_core -p aho-corasick

and then vendoring the results of those changes.
2018-08-28 21:37:30 -04:00
..
src Bug 1485409 - update crates to dispense with winapi 0.2.8 requirement; r=glandium 2018-08-28 21:37:30 -04:00
.appveyor.yml
.cargo-checksum.json Bug 1485409 - update crates to dispense with winapi 0.2.8 requirement; r=glandium 2018-08-28 21:37:30 -04:00
.travis.yml
Cargo.toml Bug 1485409 - update crates to dispense with winapi 0.2.8 requirement; r=glandium 2018-08-28 21:37:30 -04:00
LICENSE-APACHE
LICENSE-MIT
README.md Bug 1485409 - update crates to dispense with winapi 0.2.8 requirement; r=glandium 2018-08-28 21:37:30 -04:00

fs2

Extended utilities for working with files and filesystems in Rust. fs2 requires Rust stable 1.8 or greater.

Build Status Windows Build status Documentation Crate

Features

  • file descriptor duplication.
  • file locks.
  • file (pre)allocation.
  • file allocation information.
  • filesystem space usage information.

Platforms

fs2 should work on any platform supported by libc.

fs2 is continuously tested on:

  • x86_64-unknown-linux-gnu (Linux)
  • i686-unknown-linux-gnu
  • x86_64-apple-darwin (OSX)
  • i686-apple-darwin
  • x86_64-pc-windows-msvc (Windows)
  • i686-pc-windows-msvc
  • x86_64-pc-windows-gnu
  • i686-pc-windows-gnu

Benchmarks

Simple benchmarks are provided for the methods provided. Many of these benchmarks use files in a temporary directory. On many modern Linux distros the default temporary directory, /tmp, is mounted on a tempfs filesystem, which will have different performance characteristics than a disk-backed filesystem. The temporary directory is configurable at runtime through the environment (see env::temp_dir).

License

fs2 is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2015 Dan Burkert.