[package]
edition = "2021"
rust-version = "1.85"
name = "slabs-cache"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite-backed TTL key-value cache battery (Solid Cache style)"
homepage = "https://sogamoso.github.io/slabs-docs/"
readme = "README.md"
keywords = [
"web",
"framework",
"axum",
"sqlx",
"htmx",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://github.com/sogamoso/slabs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "slabs_cache"
path = "src/lib.rs"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.slabs-core]
version = "0.4.0"
[dependencies.slabs-db]
version = "0.4.0"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"tls-rustls",
"sqlite",
"postgres",
"migrate",
"chrono",
"json",
"macros",
]
default-features = false
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
too_many_lines = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1