rustfs-io-core 1.0.1

Shared I/O primitives for RustFS (buffer pool, storage profiling, backpressure, deadlock detection)
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 = "2024"
rust-version = "1.98.1"
name = "rustfs-io-core"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared I/O primitives for RustFS (buffer pool, storage profiling, backpressure, deadlock detection)"
homepage = "https://rustfs.com"
readme = "README.md"
keywords = [
    "io",
    "buffer",
    "pool",
    "rustfs",
    "backpressure",
]
categories = [
    "development-tools",
    "filesystem",
]
license = "Apache-2.0"
repository = "https://github.com/rustfs/rustfs"

[features]
default = []
hotpath = [
    "hotpath/hotpath",
    "hotpath/tokio",
    "rustfs-io-metrics/hotpath",
]
hotpath-alloc = [
    "hotpath",
    "hotpath/hotpath-alloc",
    "rustfs-io-metrics/hotpath-alloc",
]
hotpath-cpu = [
    "hotpath",
    "hotpath/hotpath-cpu",
    "rustfs-io-metrics/hotpath-cpu",
]

[lib]
name = "rustfs_io_core"
path = "src/lib.rs"
doctest = false

[dependencies.bytes]
version = "1.12.1"
features = ["serde"]

[dependencies.hotpath]
version = "0.28.0"
default-features = false

[dependencies.rustfs-io-metrics]
version = "1.0.1"

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tokio]
version = "1.53.1"
features = [
    "io-util",
    "fs",
    "sync",
    "rt-multi-thread",
]

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.tokio]
version = "1.53.1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
]

[lints.clippy]
all = "warn"
needless_collect = "warn"
redundant_clone = "warn"

[lints.rust]
unsafe_code = "deny"