[dependencies.async-std]
optional = true
version = "1"
[dependencies.fs-err2]
optional = true
package = "fs-err"
version = "2"
[dependencies.fs-err3]
optional = true
package = "fs-err"
version = "3"
[dependencies.smol]
optional = true
version = "2"
[dependencies.tokio]
default-features = false
features = ["fs"]
optional = true
version = "1"
[dev-dependencies.async-std]
features = ["attributes"]
version = "1"
[dev-dependencies.fs-err2]
features = ["io_safety", "tokio"]
package = "fs-err"
version = "2"
[dev-dependencies.fs-err3]
features = ["tokio"]
package = "fs-err"
version = "3"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.smol-potat]
version = "1.1"
[dev-dependencies.tempdir]
version = "0.3"
[dev-dependencies.tokio]
features = ["full"]
version = "1"
[features]
async-std = ["dep:async-std"]
default = ["sync"]
fs-err2 = ["dep:fs-err2", "fs-err2/io_safety"]
fs-err2-tokio = ["fs-err2", "fs-err2/tokio"]
fs-err3 = ["dep:fs-err3"]
fs-err3-tokio = ["fs-err3", "fs-err3/tokio"]
smol = ["dep:smol"]
sync = []
tokio = ["dep:tokio"]
[lib]
name = "fs4"
path = "src/lib.rs"
[package]
authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["filesystem", "external-ffi-bindings", "asynchronous"]
description = "No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix."
documentation = "https://docs.rs/fs4"
edition = "2021"
keywords = ["file", "fs2", "lock", "duplicate", "flock"]
license = "MIT OR Apache-2.0"
name = "fs4"
readme = "README.md"
repository = "https://github.com/al8n/fs4-rs"
rust-version = "1.75.0"
version = "0.12.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[target."cfg(not(windows))".dependencies.rustix]
features = ["fs"]
version = "0.38"
[target."cfg(windows)".dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_IO"]
version = "0.52"