# 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"
rust-version = "1.94"
name = "qubit-retry"
version = "0.9.0"
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/rs-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/rs-retry"

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

[features]
config = ["dep:qubit-config"]
default = []
tokio = ["dep:tokio"]

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

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

[dependencies.parse-display]
version = "0.10"

[dependencies.qubit-common]
version = "0.6"

[dependencies.qubit-config]
version = "0.9"
optional = true

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

[dependencies.rand]
version = "0.10"

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

[dependencies.tokio]
version = "1.52"
features = [
    "time",
    "rt",
]
optional = true

[dev-dependencies.serde_json]
version = "1.0"

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

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]
