# 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 = "2021"
rust-version = "1.70"
name = "qubit-retry"
version = "0.2.1"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
exclude = [
    "coverage.sh",
    "COVERAGE.md",
    "COVERAGE.zh_CN.md",
    ".circleci/*",
    "ci-check.sh",
    ".llvm-cov.toml",
    ".cargo-audit.toml.example",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Retry module, providing a feature-complete, type-safe retry management system with support for multiple delay strategies and event listeners"
homepage = "https://github.com/qubit-ltd/rust-retry"
documentation = "https://docs.rs/qubit-retry"
readme = "README.md"
keywords = [
    "retry",
    "resilience",
    "backoff",
    "fault-tolerance",
    "qubit",
]
categories = [
    "development-tools",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/qubit-ltd/rust-retry"

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

[lib]
name = "qubit_retry"
path = "src/lib.rs"
doctest = false

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

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

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

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

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

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

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

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

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

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

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

[dependencies.qubit-config]
version = "0.8.0"

[dependencies.qubit-function]
version = "0.7.0"

[dependencies.rand]
version = "0.10.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.0"
features = [
    "time",
    "rt",
]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tokio-test]
version = "0.4"
