# 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.85"
name = "imc"
version = "0.1.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trait-based, deduplicating, in-memory caching library for Rust"
readme = "README.md"
license = "MIT"
repository = "https://github.com/gaurav1704/rust-imc"
resolver = "2"

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

[features]
async = []
critical = [
    "invalidation-redis",
    "dep:imc-derive",
]
default = []
invalidation-redis = ["dep:redis"]
logging = ["dep:tracing"]
metrics-prometheus = ["dep:prometheus"]
tokio = [
    "dep:tokio",
    "async",
]

[lib]
name = "imc"
path = "src/lib.rs"

[dependencies.imc-derive]
version = "0.1.4"
optional = true

[dependencies.prometheus]
version = "0.13"
optional = true

[dependencies.redis]
version = "0.27"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

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