# 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.95"
name = "altair-rest"
version = "0.1.2"
authors = ["Jasoet <jasoet87@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Resilient HTTP client built on reqwest with retry and OTel-aware tracing baked in"
homepage = "https://github.com/jasoet/altair-rs"
readme = "README.md"
keywords = [
    "http",
    "client",
    "reqwest",
    "retry",
    "tracing",
]
categories = [
    "network-programming",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/jasoet/altair-rs"

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

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

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

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

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

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

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

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

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = ["json"]
default-features = true

[dependencies.reqwest-middleware]
version = "0.5"

[dependencies.reqwest-retry]
version = "0.9"

[dependencies.reqwest-tracing]
version = "0.7"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.url]
version = "2"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.pretty_assertions]
version = "1.4"

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

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "fmt",
    "tracing-log",
]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
