# 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.0"
name = "tele"
version = "0.1.22"
build = false
include = [
    "src/**",
    "benches/**",
    "examples/**",
    "tests/**",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic Telegram Bot API SDK for Rust, built on reqx"
homepage = "https://github.com/lvillis/tele-rs"
documentation = "https://docs.rs/tele"
readme = "README.md"
keywords = [
    "telegram",
    "bot",
    "api",
    "sdk",
    "reqx",
]
categories = [
    "api-bindings",
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/lvillis/tele-rs"

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

[features]
_all-features-compat = ["reqx/_all-features-compat"]
_async = [
    "dep:bytes",
    "dep:futures-core",
    "dep:tokio",
    "reqx/_async",
]
_blocking = ["reqx/_blocking"]
async-tls-native = [
    "_async",
    "reqx/async-tls-native",
    "reqx/strict-feature-guards",
]
async-tls-rustls-aws-lc-rs = [
    "_async",
    "reqx/async-tls-rustls-aws-lc-rs",
    "reqx/strict-feature-guards",
]
async-tls-rustls-ring = [
    "_async",
    "reqx/async-tls-rustls-ring",
    "reqx/strict-feature-guards",
]
axum = [
    "bot",
    "dep:axum",
]
blocking-tls-native = [
    "_blocking",
    "reqx/blocking-tls-native",
    "reqx/strict-feature-guards",
]
blocking-tls-rustls-aws-lc-rs = [
    "_blocking",
    "reqx/blocking-tls-rustls-aws-lc-rs",
    "reqx/strict-feature-guards",
]
blocking-tls-rustls-ring = [
    "_blocking",
    "reqx/blocking-tls-rustls-ring",
    "reqx/strict-feature-guards",
]
bot = ["_async"]
default = ["async-tls-rustls-ring"]
macros = [
    "bot",
    "dep:tele-macros",
]
otel = ["reqx/otel"]
postgres-session = [
    "bot",
    "dep:sqlx",
]
redis-session = [
    "bot",
    "dep:redis",
]
tracing = ["dep:tracing"]

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

[[example]]
name = "api_layers"
path = "examples/api_layers.rs"
required-features = ["async-tls-rustls-ring"]

[[example]]
name = "async_send_message"
path = "examples/async_send_message.rs"
required-features = ["async-tls-rustls-ring"]

[[example]]
name = "blocking_send_message"
path = "examples/blocking_send_message.rs"
required-features = ["blocking-tls-rustls-ring"]

[[example]]
name = "bot_axum_webhook"
path = "examples/bot_axum_webhook.rs"
required-features = [
    "axum",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_engine_long_polling"
path = "examples/bot_engine_long_polling.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_fallible_session"
path = "examples/bot_fallible_session.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_long_polling"
path = "examples/bot_long_polling.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_mini_app"
path = "examples/bot_mini_app.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_quickstart"
path = "examples/bot_quickstart.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[[example]]
name = "bot_typed_commands"
path = "examples/bot_typed_commands.rs"
required-features = [
    "macros",
    "async-tls-rustls-ring",
]

[[test]]
name = "async_client"
path = "tests/async_client.rs"
required-features = ["async-tls-rustls-ring"]

[[test]]
name = "blocking_client"
path = "tests/blocking_client.rs"
required-features = ["blocking-tls-rustls-ring"]

[[test]]
name = "bot_axum"
path = "tests/bot_axum.rs"
required-features = [
    "axum",
    "async-tls-rustls-ring",
]

[[test]]
name = "bot_commands_derive"
path = "tests/bot_commands_derive.rs"
required-features = [
    "macros",
    "async-tls-rustls-ring",
]

[[test]]
name = "bot_runtime"
path = "tests/bot_runtime.rs"
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

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

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

[[bench]]
name = "baseline"
path = "benches/baseline.rs"
harness = false
required-features = [
    "bot",
    "async-tls-rustls-ring",
]

[dependencies.axum]
version = "0.8.9"
features = [
    "http1",
    "tokio",
]
optional = true
default-features = false

[dependencies.bytes]
version = "1.11.1"
features = ["std"]
optional = true
default-features = false

[dependencies.futures-core]
version = "0.3.32"
optional = true
default-features = false

[dependencies.graviola]
version = "0.3.4"
default-features = false

[dependencies.http]
version = "1.4.0"
features = ["std"]
default-features = false

[dependencies.httpdate]
version = "1.0.3"
default-features = false

[dependencies.redis]
version = "1.2.0"
features = ["tokio-comp"]
optional = true
default-features = false

[dependencies.reqx]
version = "0.1.38"
default-features = false

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "std",
]
default-features = false

[dependencies.serde_json]
version = "1.0.149"
features = ["std"]
default-features = false

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "tls-rustls-ring-webpki",
    "postgres",
    "json",
]
optional = true
default-features = false

[dependencies.tele-macros]
version = "0.1.22"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"
features = ["std"]
default-features = false

[dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt",
    "time",
    "sync",
    "rt-multi-thread",
    "net",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
optional = true
default-features = false

[dependencies.url]
version = "2.5.8"
features = ["std"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = ["async_tokio"]

[dev-dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt",
    "time",
    "sync",
    "rt-multi-thread",
    "net",
]
default-features = false

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
