-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
83 lines (76 loc) · 2.38 KB
/
Cargo.toml
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
[package]
name = "passgen-telegram"
version = "1.0.0"
edition = "2021"
rust-version = "1.84.1"
license = "MIT"
description = "Telegram bot-service for generating cryptographically secure passwords/tokens and other sets and sequences."
readme = "README.md"
authors = ["Mamontov Konstantin <[email protected]>"]
homepage = "https://github.com/mammothcoding/passgen-telegram"
repository = "https://github.com/mammothcoding/passgen-telegram"
keywords = ["generator", "password", "token", "crypto-resistant", "telegram-bot"]
categories = ["authentication", "cryptography"]
exclude = [".*"]
[features]
default = ["native-tls", "ctrlc_handler", "teloxide-core/default"]
webhooks = ["rand"]
cbor-serializer = ["serde_cbor"]
bincode-serializer = ["bincode"]
macros = ["teloxide-macros"]
ctrlc_handler = ["tokio/signal"]
native-tls = ["teloxide-core/native-tls"]
rustls = ["teloxide-core/rustls"]
rustls-native-roots = ["teloxide-core/rustls-native-roots"]
throttle = ["teloxide-core/throttle"]
cache-me = [
"teloxide-core/cache_me",
]
trace-adaptor = ["teloxide-core/trace_adaptor"]
erased = ["teloxide-core/erased"]
nightly = ["teloxide-core/nightly"]
full = [
"webhooks",
"cbor-serializer",
"bincode-serializer",
"macros",
"ctrlc_handler",
"teloxide-core/full",
"native-tls",
"rustls",
"throttle",
"cache-me",
"trace-adaptor",
"erased",
]
[dependencies]
teloxide = { version = "0.13.0", features = ["macros", "webhooks", "webhooks-axum", "bincode-serializer"] }
teloxide-core = { version = "0.10.1", default-features = false }
teloxide-macros = { version = "0.8", optional = true }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
dptree = "0.3.0"
tokio = { version = "1", features = ["fs", "rt-multi-thread"] }
tokio-util = "0.7"
sqlx = { version = "0.8.2", features = ["chrono"] }
sqlx-cli = "0.8.2"
serde_cbor = { version = "0.11", optional = true }
bincode = { version = "1.3", optional = true }
axum = "0.8.1"
rand = { version = "0.9.0", optional = true }
env-file-reader = "=0.3.0"
passgen-lib = "1.1.0"
chrono = { version = "0.4.38", features = ["serde"] }
log = "0.4"
log4rs = { version = "1.3", features = ["gzip"] }
url = "2.5.3"
mime_guess = "2.0.5"
clap = { version = "4.5.23", features = ["derive"] }
clap_derive = "4.5.18"
# Reduce the size of the executable file:
[profile.release]
lto = true
codegen-units = 1
opt-level = "z"
panic = 'abort'
strip = true