tgbot 0.47.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.47.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"]
webpki-roots = [
    "dep:webpki-roots",
    "dep:rustls",
]

[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 = "execute_animation"
path = "tests/execute_animation.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "execute_webhook"
path = "tests/execute_webhook.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.itoa]
version = "1"

[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.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
]
optional = true
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"]

[dependencies.webpki-roots]
version = "1"
optional = true

[dependencies.zmij]
version = "1"

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

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

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

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

[dev-dependencies.serde-json-assert]
version = "0.4"

[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)"]