fs4

Crates.iofs4
lib.rsfs4
version
sourcesrc
created_at2021-12-31 12:10:21.897583
updated_at2024-11-07 18:22:17.540534
descriptionNo libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
homepage
repositoryhttps://github.com/al8n/fs4-rs
max_upload_size
id505782
Cargo.toml error:TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Al Liu (al8n)

documentation

https://docs.rs/fs4

README

fs4

Extended utilities for working with files and filesystems in Rust.

This is a fork of the fs2-rs crate, the aim for this fork is to support async and replace libc by rustix.

github Build codecov

docs.rs crates.io crates.io

license

Installation

  • std

    [dependencies]
    fs4 = { version = "0.11", features = ["sync"] }
    
  • async-std runtime

    [dependencies]
    fs4 = { version = "0.11", features = ["async-std"] }
    
  • fs-err

    [dependencies]
    fs4 = { version = "0.11", features = ["fs-err"] }
    
  • fs-err-tokio

    [dependencies]
    fs4 = { version = "0.11", features = ["fs-err-tokio"] }
    
  • smol runtime

    [dependencies]
    fs4 = { version = "0.11", features = ["smol"] }
    
  • tokio runtime

    [dependencies]
    fs4 = { version = "0.11", features = ["tokio"] }
    

Features

License

fs4 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) 2021 Al Liu.

Copyright (c) 2015 Dan Burkert.

Commit count: 114

cargo fmt