tgbot 0.43.0

A Telegram Bot library
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"
name = "tgbot"
version = "0.43.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Telegram Bot library"
documentation = "https://docs.rs/tgbot"
readme = "README.md"
license = "MIT"
repository = "https://github.com/tg-rs/tgbot"

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

[features]
webhook = ["dep:axum"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.derive_more]
version = "2"
features = ["from"]

[dependencies.futures-util]
version = "0.3"

[dependencies.log]
version = "0.4"

[dependencies.mime]
version = "0.3"

[dependencies.mime_guess]
version = "2"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "multipart",
    "rustls",
    "socks",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"
features = ["macros"]
default-features = false

[dependencies.shellwords]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "sync",
    "time",
]

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.insta]
version = "1"
features = ["json"]

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

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

[dev-dependencies.tempfile]
version = "3"

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

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

[lints.rust]
missing_docs = "warn"

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