fs4 1.0.0

No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.75.0"
name = "fs4"
version = "1.0.0"
authors = [
    "Dan Burkert <dan@danburkert.com>",
    "Al Liu <scygliu1@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix."
documentation = "https://docs.rs/fs4"
readme = "README.md"
keywords = [
    "file",
    "fs2",
    "lock",
    "duplicate",
    "flock",
]
categories = [
    "filesystem",
    "external-ffi-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/al8n/fs4-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[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"

[dependencies.async-std]
version = "1"
optional = true

[dependencies.fs-err2]
version = "2"
optional = true
package = "fs-err"

[dependencies.fs-err3]
version = "3"
optional = true
package = "fs-err"

[dependencies.smol]
version = "2"
optional = true

[dependencies.tokio]
version = "1"
features = ["fs"]
optional = true
default-features = false

[dev-dependencies.async-std]
version = "1"
features = ["attributes"]

[dev-dependencies.fs-err2]
version = "2"
features = [
    "io_safety",
    "tokio",
]
package = "fs-err"

[dev-dependencies.fs-err3]
version = "3"
features = ["tokio"]
package = "fs-err"

[dev-dependencies.libc]
version = "0.2"

[dev-dependencies.smol-potat]
version = "1.1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[target."cfg(not(windows))".dependencies.rustix]
version = "1"
features = ["fs"]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
]