foxtive-worker 0.4.0

Foxtive Worker - Background worker framework for message processing
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 = "foxtive-worker"
version = "0.4.0"
authors = ["ahmard"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foxtive Worker - Background worker framework for message processing"
readme = "README.md"
license = "MIT"
repository = "https://github.com/foxtive/foxtive"

[features]
batch-processing = []
circuit-breaker = []
dead-letter-queue = []
default = ["tracing"]
foxtive-cron = ["dep:foxtive-cron"]
foxtive-supervisor = ["dep:foxtive-supervisor"]
http = ["dep:axum"]
memory = []
metrics = ["dep:metrics"]
rabbitmq = [
    "foxtive/rabbitmq",
    "dep:lapin",
    "dep:futures-util",
    "dep:deadpool-lapin",
]
rate-limit = ["governor"]
redis-stream = [
    "foxtive/redis",
    "dep:deadpool-redis",
    "dep:redis",
]
tracing = ["dep:tracing"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"
features = ["backtrace"]

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.dashmap]
version = "6.1.0"
optional = true

[dependencies.deadpool-lapin]
version = "0.13.1"
features = ["rt_tokio_1"]
optional = true

[dependencies.deadpool-redis]
version = "0.23.0"
optional = true

[dependencies.foxtive]
version = "0.26.9"

[dependencies.foxtive-cron]
version = "0.5.0"
optional = true

[dependencies.foxtive-supervisor]
version = "0.3.3"
optional = true

[dependencies.futures-util]
version = "0.3.30"
optional = true

[dependencies.governor]
version = "0.10.4"
optional = true

[dependencies.lapin]
version = "3.7.2"
optional = true

[dependencies.metrics]
version = "0.24.0"
optional = true

[dependencies.rand]
version = "0.10.1"

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

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

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

[dependencies.uuid]
version = "1.23.3"
features = [
    "v4",
    "serde",
]

[dev-dependencies.foxtive-supervisor]
version = "0.3.3"

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]