fs4

Crates.iofs4
lib.rsfs4
version0.8.4
sourcesrc
created_at2021-12-31 12:10:21.897583
updated_at2024-06-11 06:58:10.976409
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
size98,905
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.8", features = ["sync"] }
    
  • tokio runtime

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

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

    [dependencies]
    fs4 = { version = "0.8", features = ["smol"] }
    

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