Remove grammers

This commit is contained in:
2023-08-09 19:07:32 +02:00
parent f83836a037
commit de6a176b24
2 changed files with 21 additions and 281 deletions

299
Cargo.lock generated
View File

@@ -17,18 +17,6 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "aes"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8"
dependencies = [
"cfg-if",
"cipher",
"cpufeatures",
"opaque-debug",
]
[[package]]
name = "ahash"
version = "0.7.6"
@@ -296,12 +284,6 @@ version = "0.21.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d"
[[package]]
name = "base64ct"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
[[package]]
name = "bigdecimal"
version = "0.3.1"
@@ -556,16 +538,7 @@ dependencies = [
"serde",
"time 0.1.45",
"wasm-bindgen",
"winapi 0.3.9",
]
[[package]]
name = "cipher"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7"
dependencies = [
"generic-array",
"winapi",
]
[[package]]
@@ -665,15 +638,6 @@ version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
[[package]]
name = "core2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505"
dependencies = [
"memchr",
]
[[package]]
name = "cpufeatures"
version = "0.2.9"
@@ -775,16 +739,6 @@ dependencies = [
"typenum",
]
[[package]]
name = "crypto-mac"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714"
dependencies = [
"generic-array",
"subtle",
]
[[package]]
name = "cuid"
version = "1.3.1"
@@ -945,7 +899,7 @@ checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -1180,7 +1134,7 @@ dependencies = [
"cc",
"lazy_static",
"libc",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -1421,134 +1375,12 @@ version = "0.27.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
[[package]]
name = "glass_pumpkin"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aebf11b7bbf35a86a661a9bcf836888ddf0a8c1b94cbb62f70d9916e0e7f67e"
dependencies = [
"core2",
"lazy_static",
"num-bigint",
"num-integer",
"num-traits",
"rand 0.8.5",
]
[[package]]
name = "glob"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
name = "grammers-client"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e02e0e6241d1b39a091c0a93edceb2c55e62f22d417c6eda556c460ef9d904e"
dependencies = [
"chrono",
"futures-util",
"grammers-crypto",
"grammers-mtproto",
"grammers-mtsender",
"grammers-session",
"grammers-tl-types",
"locate-locale",
"log",
"md5 0.7.0",
"mime_guess",
"os_info",
"pin-project-lite",
"tokio",
]
[[package]]
name = "grammers-crypto"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "573508524fd529ced63fe827fb89629a186414541fd9e645fef9ba499fc69c63"
dependencies = [
"aes",
"getrandom 0.2.10",
"glass_pumpkin",
"hmac 0.11.0",
"num-bigint",
"pbkdf2 0.8.0",
"sha1 0.6.1",
"sha2 0.9.9",
]
[[package]]
name = "grammers-mtproto"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f32276f8323f37ea7470b3df54c845c5da659c11cef300772c096d0f9afbc75e"
dependencies = [
"bytes",
"crc32fast",
"flate2",
"getrandom 0.2.10",
"grammers-crypto",
"grammers-tl-types",
"log",
"num-bigint",
"sha1 0.6.1",
]
[[package]]
name = "grammers-mtsender"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe7cf913b8dcf9155d42c0ea0cef687c4feca5bc9c6c37d7df126897448d8f9a"
dependencies = [
"bytes",
"grammers-mtproto",
"grammers-tl-types",
"log",
"tokio",
]
[[package]]
name = "grammers-session"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3cd9c4ea36da6bb68a18bd66b1bc8583db56e688861bf1d907992fa220768195"
dependencies = [
"grammers-tl-gen",
"grammers-tl-parser",
"grammers-tl-types",
"log",
]
[[package]]
name = "grammers-tl-gen"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19b32c941b054d55aaa1a706d28cd73db95c3fa811b1abdc8f074825a33ae46c"
dependencies = [
"grammers-tl-parser",
]
[[package]]
name = "grammers-tl-parser"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28c8806975587d803cc59e3bcf06e95026db58c9a79cde20b5a73c31eb731290"
dependencies = [
"crc32fast",
]
[[package]]
name = "grammers-tl-types"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d01968ac09a8b7d3dc5569631c2059d38f00ff92e1700d62b7d9e7eb473c8f3b"
dependencies = [
"grammers-tl-gen",
"grammers-tl-parser",
]
[[package]]
name = "graphql-parser"
version = "0.3.0"
@@ -1647,16 +1479,6 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hmac"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b"
dependencies = [
"crypto-mac",
"digest 0.9.0",
]
[[package]]
name = "hmac"
version = "0.12.1"
@@ -1674,7 +1496,7 @@ checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867"
dependencies = [
"libc",
"match_cfg",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -1943,16 +1765,6 @@ dependencies = [
"cpufeatures",
]
[[package]]
name = "kernel32-sys"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
dependencies = [
"winapi 0.2.8",
"winapi-build",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
@@ -2051,7 +1863,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
dependencies = [
"cfg-if",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -2094,15 +1906,6 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0"
[[package]]
name = "locate-locale"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2566fa1f7d9948dcc53b1854d2218dc5dbb54b6950e7f277e513c660819d6cce"
dependencies = [
"kernel32-sys",
]
[[package]]
name = "lock_api"
version = "0.4.10"
@@ -2210,12 +2013,6 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e6bcd6433cff03a4bfc3d9834d504467db1f1cf6d0ea765d37d330249ed629d"
[[package]]
name = "md5"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
[[package]]
name = "memchr"
version = "2.5.0"
@@ -2491,10 +2288,10 @@ dependencies = [
"futures-io",
"futures-util",
"hex",
"hmac 0.12.1",
"hmac",
"lazy_static",
"md-5",
"pbkdf2 0.11.0",
"pbkdf2",
"percent-encoding",
"rand 0.8.5",
"rustc_version_runtime",
@@ -2674,7 +2471,7 @@ dependencies = [
"saturating",
"serde",
"serde_json",
"sha1 0.10.5",
"sha1",
"sha2 0.10.7",
"smallvec",
"subprocess",
@@ -2727,7 +2524,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
dependencies = [
"overload",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -2753,7 +2550,6 @@ dependencies = [
"autocfg",
"num-integer",
"num-traits",
"rand 0.8.5",
]
[[package]]
@@ -2950,7 +2746,7 @@ checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e"
dependencies = [
"log",
"serde",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -2991,7 +2787,7 @@ dependencies = [
"libc",
"redox_syscall 0.2.16",
"smallvec",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -3019,36 +2815,12 @@ dependencies = [
"schema-ast",
]
[[package]]
name = "password-hash"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e0b28ace46c5a396546bcf443bf422b57049617433d8854227352a4a9b24e7"
dependencies = [
"base64ct",
"rand_core 0.6.4",
"subtle",
]
[[package]]
name = "paste"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
[[package]]
name = "pbkdf2"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa"
dependencies = [
"base64ct",
"crypto-mac",
"hmac 0.11.0",
"password-hash",
"sha2 0.9.9",
]
[[package]]
name = "pbkdf2"
version = "0.11.0"
@@ -3215,7 +2987,7 @@ dependencies = [
"byteorder",
"bytes",
"fallible-iterator",
"hmac 0.12.1",
"hmac",
"md-5",
"memchr",
"rand 0.8.5",
@@ -3513,7 +3285,7 @@ dependencies = [
"raw-cpuid",
"wasi 0.10.0+wasi-snapshot-preview1",
"web-sys",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -3529,7 +3301,7 @@ dependencies = [
"raw-cpuid",
"wasi 0.11.0+wasi-snapshot-preview1",
"web-sys",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -3901,7 +3673,7 @@ dependencies = [
"spin",
"untrusted",
"web-sys",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -4403,15 +4175,6 @@ dependencies = [
"digest 0.10.7",
]
[[package]]
name = "sha1"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770"
dependencies = [
"sha1_smol",
]
[[package]]
name = "sha1"
version = "0.10.5"
@@ -4423,12 +4186,6 @@ dependencies = [
"digest 0.10.7",
]
[[package]]
name = "sha1_smol"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
[[package]]
name = "sha2"
version = "0.9.9"
@@ -4533,7 +4290,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662"
dependencies = [
"libc",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -4699,7 +4456,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c2e86926081dda636c546d8c5e641661049d7562a68f5488be4a1f7f66f6086"
dependencies = [
"libc",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -4771,8 +4528,6 @@ dependencies = [
"chrono",
"futures",
"futures-core",
"grammers-client",
"grammers-session",
"once_cell",
"prisma-client-rust",
"reqwest",
@@ -4869,7 +4624,7 @@ checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a"
dependencies = [
"libc",
"wasi 0.10.0+wasi-snapshot-preview1",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -5577,12 +5332,6 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8"
[[package]]
name = "winapi"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
[[package]]
name = "winapi"
version = "0.3.9"
@@ -5593,12 +5342,6 @@ dependencies = [
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-build"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
@@ -5619,9 +5362,9 @@ checksum = "8f820cd208ce9c6b050812dc2d724ba98c6c1e9db5ce9b3f58d925ae5723a5e6"
dependencies = [
"bitflags 1.3.2",
"byteorder",
"md5 0.6.1",
"md5",
"rand 0.7.3",
"winapi 0.3.9",
"winapi",
]
[[package]]
@@ -5705,7 +5448,7 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
dependencies = [
"winapi 0.3.9",
"winapi",
]
[[package]]

View File

@@ -32,9 +32,6 @@ tower-http = { version = "0.4.3", features = ["trace"] }
base64 = "0.21.2"
grammers-client = "0.4.0"
grammers-session = "0.4.0"
futures = "0.3.28"
futures-core = "0.3.28"
async-stream = "0.3.5"