Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (82 loc) · 3.53 KB
/
Copy pathCargo.toml
File metadata and controls
91 lines (82 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[package]
name = "vaegram"
description = "Telegram MTProto client library for users and bots"
version = "0.3.0"
edition = "2024"
rust-version = "1.85"
license = "Apache-2.0"
repository = "https://github.com/rjriajul/vaegram"
readme = "README.md"
keywords = ["telegram", "mtproto", "bot", "client", "async"]
categories = ["api-bindings", "network-programming", "asynchronous"]
exclude = [".github", "tools", "tests/botapi_coverage.rs"]
[workspace]
members = ["vae"]
[dependencies]
crc32fast = "1"
flate2 = "1"
getrandom = "0.2"
num-bigint = "0.4"
rpassword = "7"
sha1 = "0.10"
sha2 = "0.10"
tokio = { version = "1", features = ["fs", "net", "io-util", "rt", "signal", "sync", "time", "macros"] }
warpcrypto = "2.2"
# Optional, each behind the feature of the same purpose below.
metrics = { version = "0.24", optional = true }
mongodb = { version = "3.6", optional = true }
object_store = { version = "0.14", optional = true, default-features = false, features = ["aws"] }
opentelemetry = { version = "0.33", optional = true, default-features = false, features = ["trace"] }
redb = { version = "2.6", optional = true }
redis = { version = "1.2", optional = true, default-features = false, features = ["tokio-comp", "connection-manager"] }
regex = { version = "1.12", optional = true }
reqwest = { version = "0.13", optional = true, default-features = false, features = ["rustls-no-provider"] }
rusqlite = { version = "0.40", optional = true, default-features = false, features = ["bundled"] }
rustls = { version = "0.23.46", optional = true, default-features = false, features = ["ring", "std", "tls12"] }
serde_json = { version = "1", optional = true }
tokio-postgres = { version = "0.7", optional = true }
tokio-rustls = { version = "0.26.6", optional = true, default-features = false, features = ["ring", "tls12"] }
webpki-roots = { version = "1", optional = true }
# `flock` for the session file lock. Already in the dependency graph through tokio on Unix.
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[features]
# `ToJson` for every TL type and function; off by default to keep the generated code small.
json = []
# TL objects behind `RawUpdate` (`raw()`, `raw_users()`, `raw_chats()`), `Incoming::into_updates()` and
# `UploadedFile::into_raw()`, and the session plumbing below `Client`: `connection::Connection` and
# `session::{Session, UpdatesRx, Incoming, Events}`. The live tests that open a bare session need it.
# Experimental: may change or go away in any release.
unstable-raw = []
# Storage engines.
sqlite = ["dep:rusqlite"]
redb = ["dep:redb"]
redis = ["dep:redis"]
mongodb = ["dep:mongodb"]
postgres = ["dep:tokio-postgres"]
s3 = ["dep:object_store"]
vault = ["dep:reqwest", "dep:serde_json", "dep:rustls", "dep:webpki-roots"]
# Observability.
metrics = ["dep:metrics"]
opentelemetry = ["dep:opentelemetry"]
# `filters::regex`.
regex = ["dep:regex"]
# Transports over TLS.
websocket = ["dep:rustls", "dep:tokio-rustls", "dep:webpki-roots"]
dns-config = ["dep:rustls", "dep:tokio-rustls", "dep:webpki-roots"]
web-proxy = ["dep:rustls", "dep:tokio-rustls", "dep:webpki-roots"]
[dev-dependencies]
metrics-util = "0.20"
opentelemetry_sdk = { version = "0.33", features = ["testing"] }
rcgen = { version = "0.14.7", default-features = false, features = ["pem", "ring"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "test-util"] }
tokio-rustls = { version = "0.26.6", default-features = false, features = ["ring", "tls12"] }
[[bench]]
name = "tl"
harness = false
[[bench]]
name = "session"
harness = false
[[example]]
name = "dump_recording"
required-features = ["json"]