mettle 0.1.1

A resilience toolkit for Rust.
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"
rust-version = "1.85"
name = "mettle"
version = "0.1.1"
build = false
exclude = [
    "docs",
    "learning",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A resilience toolkit for Rust."
documentation = "https://docs.rs/mettle"
readme = "README.md"
keywords = [
    "retry",
    "backoff",
    "resilience",
    "async",
    "tokio",
]
categories = [
    "asynchronous",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/azeemshaik025/mettle"

[features]
async = [
    "dep:tokio",
    "dep:pin-project-lite",
]
blocking = []
default = [
    "async",
    "blocking",
]

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

[[example]]
name = "blocking_retry"
path = "examples/blocking_retry.rs"
required-features = ["blocking"]

[[example]]
name = "retry"
path = "examples/retry.rs"
required-features = ["async"]

[dependencies.pin-project-lite]
version = "0.2"
optional = true

[dependencies.tokio]
version = "1"
features = ["time"]
optional = true

[dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "test-util",
]