fmmap 0.5.0

A flexible and convenient high-level mmap for zero-copy file I/O.
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.81.0"
name = "fmmap"
version = "0.5.0"
authors = ["Al Liu <scygliu@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A flexible and convenient high-level mmap for zero-copy file I/O."
documentation = "https://docs.rs/fmmap"
readme = "README.md"
keywords = [
    "file",
    "memmap2",
    "mmap",
    "memory-map",
    "io",
]
categories = [
    "filesystem",
    "asynchronous",
    "memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/al8n/fmmap/tree/main/fmmap-rs"

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

[features]
default = ["sync"]
smol = [
    "dep:smol",
    "fs4/smol",
    "dep:pin-project-lite",
]
sync = [
    "dep:fs4",
    "fs4?/sync",
]
tokio = [
    "dep:tokio",
    "fs4/tokio",
    "dep:pin-project-lite",
    "tokio?/io-std",
    "tokio?/io-util",
    "tokio?/fs",
    "tokio?/rt",
]

[lib]
name = "fmmap"
path = "src/lib.rs"
doctest = true

[dependencies.byteorder]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.enum_dispatch]
version = "0.3"

[dependencies.fs4]
version = "1"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.memmapix]
version = "0.9"

[dependencies.pin-project-lite]
version = "0.2"
optional = true

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

[dependencies.tokio]
version = "1"
optional = true

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.ctor]
version = "0.12"

[dev-dependencies.scopeguard]
version = "1.2"

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

[dev-dependencies.tempdir]
version = "0.3"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

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