Update deps

This commit is contained in:
Maybe Waffle 2022-07-19 14:30:18 +04:00
parent eb8b384f46
commit ed88e43afa
2 changed files with 11 additions and 11 deletions

View file

@ -57,18 +57,18 @@ full = [
]
[dependencies]
#teloxide-core = { version = "0.6.0", default-features = false }
teloxide-core = { git = "https://github.com/teloxide/teloxide-core", rev = "b13393d", default-features = false }
teloxide-core = { version = "0.7.0", default-features = false }
#teloxide-core = { git = "https://github.com/teloxide/teloxide-core", rev = "b13393d", default-features = false }
teloxide-macros = { version = "0.6.2", optional = true }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
#dptree = "0.2.1"
dptree = { git = "https://github.com/teloxide/dptree.git", rev = "df578e4" }
dptree = "0.3.0"
#dptree = { git = "https://github.com/teloxide/dptree.git", rev = "df578e4" }
tokio = { version = "1.8", features = ["fs"] }
tokio-util = "0.6"
tokio-util = "0.7"
tokio-stream = "0.1.8"
url = "2.2.2"
@ -83,17 +83,17 @@ pin-project = "1.0"
serde_with_macros = "1.4"
aquamarine = "0.1.11"
sqlx = { version = "0.5", optional = true, default-features = false, features = [
sqlx = { version = "0.6", optional = true, default-features = false, features = [
"runtime-tokio-native-tls",
"macros",
"sqlite",
] }
redis = { version = "0.20", features = ["tokio-comp"], optional = true }
redis = { version = "0.21", features = ["tokio-comp"], optional = true }
serde_cbor = { version = "0.11", optional = true }
bincode = { version = "1.3", optional = true }
axum = { version = "0.4.8", optional = true }
axum = { version = "0.5.13", optional = true }
tower = { version = "0.4.12", optional = true }
tower-http = { version = "0.2.5", features = ["trace"], optional = true }
tower-http = { version = "0.3.4", features = ["trace"], optional = true }
rand = { version = "0.8.5", optional = true }
[dev-dependencies]
@ -102,7 +102,7 @@ pretty_env_logger = "0.4.0"
serde = "1"
serde_json = "1"
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
reqwest = "0.10.4"
reqwest = "0.11.11"
chrono = "0.4"
tokio-stream = "0.1"

View file

@ -272,7 +272,7 @@ impl<B> FromRequest<B> for XTelegramBotApiSecretToken {
let res = req
.headers_mut()
.and_then(|map| map.remove("x-telegram-bot-api-secret-token"))
.remove("x-telegram-bot-api-secret-token")
.map(|header| {
check_secret(header.as_bytes())
.map(<_>::to_owned)