fs4 1.0.1

No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use async_std::fs::File;
use std::os::unix::fs::MetadataExt;
use std::os::unix::io::AsRawFd;

lock_impl!(File);
allocate!(File);
allocate_size!(File);

test_mod! {
  async_std::test,
  use crate::async_std::AsyncFileExt;
  use async_std::fs;
}