accelerator 0.1.0

MVP multi-level cache runtime with singleflight load de-duplication
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"
name = "accelerator"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MVP multi-level cache runtime with singleflight load de-duplication"
documentation = "https://docs.rs/accelerator"
readme = "README.md"
keywords = [
    "cache",
    "redis",
    "moka",
    "async",
    "singleflight",
]
categories = [
    "caching",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/landians/accelerator"

[features]
default = []
otlp = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tonic",
    "dep:tracing-opentelemetry",
    "dep:tracing-subscriber",
]

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

[[bin]]
name = "check_bench_regression"
path = "src/bin/check_bench_regression.rs"

[[bin]]
name = "export_bench_baseline"
path = "src/bin/export_bench_baseline.rs"

[[example]]
name = "clickstack_otlp"
path = "examples/clickstack_otlp.rs"

[[example]]
name = "fixed_backend_best_practice"
path = "examples/fixed_backend_best_practice.rs"

[[example]]
name = "macro_batch_best_practice"
path = "examples/macro_batch_best_practice.rs"

[[example]]
name = "macro_best_practice"
path = "examples/macro_best_practice.rs"

[[test]]
name = "macro_v1"
path = "tests/macro_v1.rs"

[[test]]
name = "macro_v2"
path = "tests/macro_v2.rs"

[[test]]
name = "redis_integration"
path = "tests/redis_integration.rs"

[[test]]
name = "stack_integration"
path = "tests/stack_integration.rs"

[[bench]]
name = "cache_path_bench"
path = "benches/cache_path_bench.rs"
harness = false

[dependencies.futures-util]
version = "0.3.32"

[dependencies.macros_impl]
version = "0.1.0"
package = "accelerator-macros"

[dependencies.moka]
version = "0.12.14"
features = ["future"]

[dependencies.opentelemetry]
version = "0.31.0"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31.0"
features = [
    "grpc-tonic",
    "http-proto",
    "trace",
]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31.0"
features = ["rt-tokio"]
optional = true

[dependencies.redis]
version = "1.0.5"
features = [
    "aio",
    "tokio-comp",
]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"

[dependencies.singleflight-async]
version = "0.2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.50.0"
features = [
    "sync",
    "time",
    "rt-multi-thread",
    "macros",
]

[dependencies.tonic]
version = "0.14.2"
optional = true

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-opentelemetry]
version = "0.32.0"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dev-dependencies.criterion]
version = "0.5.1"
features = ["async_tokio"]

[dev-dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio-rustls",
    "postgres",
]
default-features = false