[package]
edition = "2024"
rust-version = "1.85"
name = "vaegram"
version = "0.3.0"
build = "build.rs"
exclude = [
".github",
"tools",
"tests/botapi_coverage.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Telegram MTProto client library for users and bots"
readme = "README.md"
keywords = [
"telegram",
"mtproto",
"bot",
"client",
"async",
]
categories = [
"api-bindings",
"network-programming",
"asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/rjriajul/vaegram"
[features]
dns-config = [
"dep:rustls",
"dep:tokio-rustls",
"dep:webpki-roots",
]
json = []
metrics = ["dep:metrics"]
mongodb = ["dep:mongodb"]
opentelemetry = ["dep:opentelemetry"]
postgres = ["dep:tokio-postgres"]
redb = ["dep:redb"]
redis = ["dep:redis"]
regex = ["dep:regex"]
s3 = ["dep:object_store"]
sqlite = ["dep:rusqlite"]
unstable-raw = []
vault = [
"dep:reqwest",
"dep:serde_json",
"dep:rustls",
"dep:webpki-roots",
]
web-proxy = [
"dep:rustls",
"dep:tokio-rustls",
"dep:webpki-roots",
]
websocket = [
"dep:rustls",
"dep:tokio-rustls",
"dep:webpki-roots",
]
[lib]
name = "vaegram"
path = "src/lib.rs"
[[example]]
name = "demo_bot"
path = "examples/demo_bot.rs"
[[example]]
name = "dump_recording"
path = "examples/dump_recording.rs"
required-features = ["json"]
[[example]]
name = "echo_bot"
path = "examples/echo_bot.rs"
[[example]]
name = "event_log"
path = "examples/event_log.rs"
[[example]]
name = "login"
path = "examples/login.rs"
[[example]]
name = "replay_test"
path = "examples/replay_test.rs"
[[test]]
name = "handler_outcome"
path = "tests/handler_outcome.rs"
[[test]]
name = "live"
path = "tests/live.rs"
[[test]]
name = "live_0_2_methods"
path = "tests/live_0_2_methods.rs"
[[test]]
name = "live_0_2_updates"
path = "tests/live_0_2_updates.rs"
[[test]]
name = "live_account_bots"
path = "tests/live_account_bots.rs"
[[test]]
name = "live_chat_info"
path = "tests/live_chat_info.rs"
[[test]]
name = "live_chat_info_2"
path = "tests/live_chat_info_2.rs"
[[test]]
name = "live_chat_photo"
path = "tests/live_chat_photo.rs"
[[test]]
name = "live_chat_results"
path = "tests/live_chat_results.rs"
[[test]]
name = "live_client_control"
path = "tests/live_client_control.rs"
[[test]]
name = "live_client_options"
path = "tests/live_client_options.rs"
[[test]]
name = "live_gift_actions"
path = "tests/live_gift_actions.rs"
[[test]]
name = "live_gift_fields"
path = "tests/live_gift_fields.rs"
[[test]]
name = "live_gifts"
path = "tests/live_gifts.rs"
[[test]]
name = "live_link_previews"
path = "tests/live_link_previews.rs"
[[test]]
name = "live_links"
path = "tests/live_links.rs"
[[test]]
name = "live_listeners"
path = "tests/live_listeners.rs"
[[test]]
name = "live_media_dc"
path = "tests/live_media_dc.rs"
[[test]]
name = "live_media_thumbs"
path = "tests/live_media_thumbs.rs"
[[test]]
name = "live_message_fields"
path = "tests/live_message_fields.rs"
[[test]]
name = "live_message_helpers"
path = "tests/live_message_helpers.rs"
[[test]]
name = "live_messages_extras"
path = "tests/live_messages_extras.rs"
[[test]]
name = "live_msg_actions"
path = "tests/live_msg_actions.rs"
[[test]]
name = "live_msg_fields"
path = "tests/live_msg_fields.rs"
[[test]]
name = "live_msg_replies"
path = "tests/live_msg_replies.rs"
[[test]]
name = "live_msg_service"
path = "tests/live_msg_service.rs"
[[test]]
name = "live_observe"
path = "tests/live_observe.rs"
[[test]]
name = "live_recover_gaps"
path = "tests/live_recover_gaps.rs"
[[test]]
name = "live_replace_callback_message"
path = "tests/live_replace_callback_message.rs"
[[test]]
name = "live_report_methods"
path = "tests/live_report_methods.rs"
[[test]]
name = "live_small_methods"
path = "tests/live_small_methods.rs"
[[test]]
name = "live_storage_core"
path = "tests/live_storage_core.rs"
[[test]]
name = "live_storage_import"
path = "tests/live_storage_import.rs"
[[test]]
name = "live_storage_resolve"
path = "tests/live_storage_resolve.rs"
[[test]]
name = "live_stories_stickers"
path = "tests/live_stories_stickers.rs"
[[test]]
name = "live_story_fields"
path = "tests/live_story_fields.rs"
[[test]]
name = "live_story_filters"
path = "tests/live_story_filters.rs"
[[test]]
name = "live_takeout"
path = "tests/live_takeout.rs"
[[test]]
name = "live_taplm_and_audit"
path = "tests/live_taplm_and_audit.rs"
[[test]]
name = "live_ton_wallet"
path = "tests/live_ton_wallet.rs"
[[test]]
name = "live_transfers"
path = "tests/live_transfers.rs"
[[test]]
name = "live_type_helpers"
path = "tests/live_type_helpers.rs"
[[test]]
name = "live_uploads"
path = "tests/live_uploads.rs"
[[test]]
name = "live_user_info"
path = "tests/live_user_info.rs"
[[test]]
name = "live_w4_auth_codes"
path = "tests/live_w4_auth_codes.rs"
[[test]]
name = "live_w4_caches"
path = "tests/live_w4_caches.rs"
[[test]]
name = "live_w4_card_payments"
path = "tests/live_w4_card_payments.rs"
[[test]]
name = "live_w4_connector"
path = "tests/live_w4_connector.rs"
[[test]]
name = "live_w4_dm_topics"
path = "tests/live_w4_dm_topics.rs"
[[test]]
name = "live_w4_dns"
path = "tests/live_w4_dns.rs"
[[test]]
name = "live_w4_fetch"
path = "tests/live_w4_fetch.rs"
[[test]]
name = "live_w4_fetch_reads"
path = "tests/live_w4_fetch_reads.rs"
[[test]]
name = "live_w4_filters"
path = "tests/live_w4_filters.rs"
[[test]]
name = "live_w4_iterators"
path = "tests/live_w4_iterators.rs"
[[test]]
name = "live_w4_keyboards"
path = "tests/live_w4_keyboards.rs"
[[test]]
name = "live_w4_no_paid_messages"
path = "tests/live_w4_no_paid_messages.rs"
[[test]]
name = "live_w4_options"
path = "tests/live_w4_options.rs"
[[test]]
name = "live_w4_parse"
path = "tests/live_w4_parse.rs"
[[test]]
name = "live_w4_pipeline"
path = "tests/live_w4_pipeline.rs"
[[test]]
name = "live_w4_privacy"
path = "tests/live_w4_privacy.rs"
[[test]]
name = "live_w4_proxy"
path = "tests/live_w4_proxy.rs"
[[test]]
name = "live_w4_regex"
path = "tests/live_w4_regex.rs"
[[test]]
name = "live_w4_rich_read"
path = "tests/live_w4_rich_read.rs"
[[test]]
name = "live_w4_share_theme"
path = "tests/live_w4_share_theme.rs"
[[test]]
name = "live_w4_story_edits"
path = "tests/live_w4_story_edits.rs"
[[test]]
name = "live_w4_transport"
path = "tests/live_w4_transport.rs"
[[test]]
name = "live_w4_web_proxy"
path = "tests/live_w4_web_proxy.rs"
[[test]]
name = "live_w4_websocket"
path = "tests/live_w4_websocket.rs"
[[test]]
name = "mockdc"
path = "tests/mockdc.rs"
[[test]]
name = "must_use"
path = "tests/must_use.rs"
[[test]]
name = "no_raw_in_api"
path = "tests/no_raw_in_api.rs"
[[test]]
name = "raw"
path = "tests/raw.rs"
[[test]]
name = "raw_access"
path = "tests/raw_access.rs"
[[test]]
name = "replay"
path = "tests/replay.rs"
[[test]]
name = "send_bounds"
path = "tests/send_bounds.rs"
[[test]]
name = "storage"
path = "tests/storage.rs"
[[bench]]
name = "session"
path = "benches/session.rs"
harness = false
[[bench]]
name = "tl"
path = "benches/tl.rs"
harness = false
[dependencies.crc32fast]
version = "1"
[dependencies.flate2]
version = "1"
[dependencies.getrandom]
version = "0.2"
[dependencies.metrics]
version = "0.24"
optional = true
[dependencies.mongodb]
version = "3.6"
optional = true
[dependencies.num-bigint]
version = "0.4"
[dependencies.object_store]
version = "0.14"
features = ["aws"]
optional = true
default-features = false
[dependencies.opentelemetry]
version = "0.33"
features = ["trace"]
optional = true
default-features = false
[dependencies.redb]
version = "2.6"
optional = true
[dependencies.redis]
version = "1.2"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
default-features = false
[dependencies.regex]
version = "1.12"
optional = true
[dependencies.reqwest]
version = "0.13"
features = ["rustls-no-provider"]
optional = true
default-features = false
[dependencies.rpassword]
version = "7"
[dependencies.rusqlite]
version = "0.40"
features = ["bundled"]
optional = true
default-features = false
[dependencies.rustls]
version = "0.23.46"
features = [
"ring",
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.tokio]
version = "1"
features = [
"fs",
"net",
"io-util",
"rt",
"signal",
"sync",
"time",
"macros",
]
[dependencies.tokio-postgres]
version = "0.7"
optional = true
[dependencies.tokio-rustls]
version = "0.26.6"
features = [
"ring",
"tls12",
]
optional = true
default-features = false
[dependencies.warpcrypto]
version = "2.2"
[dependencies.webpki-roots]
version = "1"
optional = true
[dev-dependencies.metrics-util]
version = "0.20"
[dev-dependencies.opentelemetry_sdk]
version = "0.33"
features = ["testing"]
[dev-dependencies.rcgen]
version = "0.14.7"
features = [
"pem",
"ring",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"test-util",
]
[dev-dependencies.tokio-rustls]
version = "0.26.6"
features = [
"ring",
"tls12",
]
default-features = false
[target."cfg(unix)".dependencies.libc]
version = "0.2"