distkit 0.2.3

A toolkit of distributed systems primitives for Rust, backed by Redis
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 = "distkit"
version = "0.2.3"
authors = ["Oyinbo David Bayode <dev.davexoyinbo@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A toolkit of distributed systems primitives for Rust, backed by Redis"
documentation = "https://docs.rs/distkit"
readme = "README.md"
keywords = [
    "distributed",
    "counter",
    "redis",
    "async",
    "eventual-consistency",
]
categories = [
    "algorithms",
    "concurrency",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/dev-davexoyinbo/distkit"

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

[features]
counter = []
default = [
    "counter",
    "instance-aware-counter",
]
full = [
    "counter",
    "instance-aware-counter",
    "trypema",
]
instance-aware-counter = []
trypema = [
    "trypema-crate",
    "trypema-crate/redis-tokio",
]

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

[[bench]]
name = "common"
path = "benches/common.rs"

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

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

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

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

[dependencies.async-trait]
version = "0.1.89"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.redis]
version = "1.2.0"
features = [
    "aio",
    "connection-manager",
    "tokio-comp",
]

[dependencies.strum]
version = "0.28.0"

[dependencies.strum_macros]
version = "0.28.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.51"
features = ["full"]

[dependencies.tracing]
version = "0.1.44"

[dependencies.trypema-crate]
version = "1.1.0"
optional = true
package = "trypema"

[dependencies.uuid]
version = "1.23.0"
features = ["v4"]

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

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"