Using async_trait crate to let us create asynchronous trait functions

this is only temporary until the rust standard changes
This commit is contained in:
shockrah
2020-09-02 19:12:05 -07:00
parent 2981cbc30b
commit 89b042ba9e
2 changed files with 39 additions and 6 deletions

View File

@@ -30,6 +30,17 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8"
[[package]]
name = "async-trait"
version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "687c230d85c0a52504709705fc8a53e4a692b83a2184f03dae73e38e1e93a783"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "autocfg"
version = "1.0.1"
@@ -149,6 +160,12 @@ dependencies = [
"time 0.1.44",
]
[[package]]
name = "const_fn"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce90df4c658c62f12d78f7508cf92f9173e5184a539c10bfe54a3107b3ffd0f2"
[[package]]
name = "core-foundation"
version = "0.7.0"
@@ -250,6 +267,7 @@ dependencies = [
name = "db"
version = "0.1.0"
dependencies = [
"async-trait",
"mysql_async",
]
@@ -494,9 +512,9 @@ checksum = "755456fae044e6fa1ebbbd1b3e902ae19e73097ed4ed87bb79934a867c007bc3"
[[package]]
name = "libz-sys"
version = "1.1.0"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af67924b8dd885cccea261866c8ce5b74d239d272e154053ff927dae839f5ae9"
checksum = "23b34178653005c1181711c333f0e5604a14a1b5115c814fd42304bdd16245e0"
dependencies = [
"cc",
"pkg-config",
@@ -664,7 +682,7 @@ dependencies = [
"serde_json",
"sha1",
"sha2",
"time 0.2.16",
"time 0.2.17",
"twox-hash",
"uuid",
]
@@ -1225,11 +1243,11 @@ dependencies = [
[[package]]
name = "time"
version = "0.2.16"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a51cadc5b1eec673a685ff7c33192ff7b7603d0b75446fb354939ee615acb15"
checksum = "ca7ec98a72285d12e0febb26f0847b12d54be24577618719df654c66cadab55d"
dependencies = [
"cfg-if",
"const_fn",
"libc",
"standback",
"stdweb",