# 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.85.0"
name = "foyer-bench"
version = "0.22.3"
authors = ["MrCroxx <mrcroxx@outlook.com>"]
build = false
exclude = ["website/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "bench tool for foyer - Hybrid cache for Rust"
homepage = "https://foyer-rs.github.io/foyer"
readme = "README.md"
keywords = [
    "cache",
    "hybrid",
]
license = "Apache-2.0"
repository = "https://github.com/foyer-rs/foyer"

[features]
deadlock = [
    "parking_lot/deadlock_detection",
    "foyer/deadlock",
]
default = ["jemalloc"]
jemalloc = ["dep:tikv-jemallocator"]
jeprof = [
    "jemalloc",
    "tikv-jemallocator?/profiling",
]
strict_assertions = ["foyer/strict_assertions"]
tokio-console = ["dep:console-subscriber"]
tracing = [
    "fastrace/enable",
    "foyer/tracing",
    "dep:fastrace-jaeger",
]

[[bin]]
name = "foyer-bench"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.bytesize]
version = "2"
package = "foyer-bytesize"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.console-subscriber]
version = "0.5"
optional = true

[dependencies.fastrace]
version = "0.7"
optional = true

[dependencies.fastrace-jaeger]
version = "0.7"
optional = true

[dependencies.foyer]
version = "0.22.3"
features = [
    "runtime-tokio",
    "tracing",
    "clap",
    "test_utils",
]
default-features = false

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.hdrhistogram]
version = "7"

[dependencies.http-body-util]
version = "0.1"

[dependencies.humantime]
version = "2"

[dependencies.hyper]
version = "1"
features = [
    "server",
    "http1",
]
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
default-features = false

[dependencies.itertools]
version = "0.14"

[dependencies.mea]
version = "0.6"

[dependencies.mixtrics]
version = "0.2"
features = ["prometheus"]

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.14"

[dependencies.rand]
version = "0.9"

[dependencies.rand_distr]
version = "0.5"

[dependencies.tokio]
version = "0.22.3"
features = ["full"]
default-features = false
package = "foyer-tokio"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[target.'cfg(not(target_env = "msvc"))'.dependencies.tikv-jemallocator]
version = "0.6"
optional = true

[lints.clippy]
allow_attributes = "warn"

[lints.rust]
missing_docs = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(madsim)"]
