[package]
edition = "2024"
rust-version = "1.89"
name = "salvo-cache"
version = "0.89.0"
authors = ["chrislearn <chris@acroidea.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Cache middleware for Salvo web server framework.
"""
homepage = "https://salvo.rs"
readme = "README.md"
keywords = [
"http",
"async",
"web",
"framework",
"server",
]
categories = [
"web-programming::http-server",
"web-programming::websocket",
"network-programming",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/salvo-rs/salvo"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["moka-store"]
full = ["moka-store"]
moka-store = ["dep:moka"]
[lib]
name = "salvo_cache"
path = "src/lib.rs"
[dependencies.bytes]
version = "1"
[dependencies.moka]
version = "0.12"
features = ["future"]
optional = true
[dependencies.salvo_core]
version = "0.89.0"
features = ["http1"]
default-features = false
[dependencies.tracing]
version = "0.1"
[dev-dependencies.salvo_core]
version = "0.89.0"
features = ["test"]
default-features = false
[dev-dependencies.time]
version = "0.3"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
[lints.clippy]
await_holding_lock = "warn"
dbg_macro = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
filter_map_next = "warn"
fn_params_excessive_bools = "warn"
future_not_send = "warn"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
mem_forget = "warn"
must_use_candidate = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
option_option = "warn"
redundant_clone = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
single_match_else = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "warn"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
uninlined_format_args = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
unwrap_used = "warn"
use_self = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "warn"