This commit is contained in:
Michael Cooper 2021-05-13 16:08:49 -07:00
Родитель 10c4a5f2d1
Коммит 836b175b7e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9424CEA6F89AB334
4 изменённых файлов: 370 добавлений и 120 удалений

479
Cargo.lock сгенерированный
Просмотреть файл

@ -40,21 +40,6 @@ dependencies = [
"tokio-io",
]
[[package]]
name = "actix-codec"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09e55f0a5c2ca15795035d90c46bd0e73a5123b72f68f12596d6ba5282051380"
dependencies = [
"bitflags",
"bytes 0.5.6",
"futures-core",
"futures-sink",
"log",
"tokio",
"tokio-util 0.2.0",
]
[[package]]
name = "actix-codec"
version = "0.3.0"
@ -68,7 +53,7 @@ dependencies = [
"log",
"pin-project 0.4.28",
"tokio",
"tokio-util 0.3.1",
"tokio-util",
]
[[package]]
@ -93,21 +78,21 @@ dependencies = [
[[package]]
name = "actix-connect"
version = "1.0.2"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c95cc9569221e9802bf4c377f6c18b90ef10227d787611decf79fd47d2a8e76c"
checksum = "177837a10863f15ba8d3ae3ec12fac1099099529ed20083a27fdfe247381d0dc"
dependencies = [
"actix-codec 0.2.0",
"actix-codec 0.3.0",
"actix-rt 1.1.1",
"actix-service 1.0.6",
"actix-utils 1.0.6",
"actix-utils 2.0.0",
"derive_more 0.99.13",
"either",
"futures 0.3.15",
"futures-util",
"http 0.2.4",
"log",
"trust-dns-proto 0.18.0-alpha.2",
"trust-dns-resolver 0.18.0-alpha.2",
"trust-dns-proto 0.19.7",
"trust-dns-resolver 0.19.7",
]
[[package]]
@ -145,10 +130,10 @@ dependencies = [
"regex",
"serde",
"serde_json",
"serde_urlencoded",
"serde_urlencoded 0.6.1",
"sha1",
"slab",
"time",
"time 0.1.43",
"tokio-current-thread",
"tokio-tcp",
"tokio-timer",
@ -157,26 +142,25 @@ dependencies = [
[[package]]
name = "actix-http"
version = "1.0.1"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c16664cc4fdea8030837ad5a845eb231fb93fc3c5c171edfefb52fad92ce9019"
checksum = "452299e87817ae5673910e53c243484ca38be3828db819b6011736fc6982e874"
dependencies = [
"actix-codec 0.2.0",
"actix-connect 1.0.2",
"actix-codec 0.3.0",
"actix-connect 2.0.0",
"actix-rt 1.1.1",
"actix-service 1.0.6",
"actix-threadpool 0.3.3",
"actix-utils 1.0.6",
"base64 0.11.0",
"actix-utils 2.0.0",
"base64 0.13.0",
"bitflags",
"brotli2",
"bytes 0.5.6",
"chrono",
"cookie",
"copyless",
"derive_more 0.99.13",
"either",
"encoding_rs",
"failure",
"flate2",
"futures-channel",
"futures-core",
@ -186,20 +170,21 @@ dependencies = [
"http 0.2.4",
"httparse",
"indexmap",
"itoa",
"language-tags",
"lazy_static",
"log",
"mime",
"percent-encoding 2.1.0",
"pin-project 0.4.28",
"pin-project 1.0.7",
"rand 0.7.3",
"regex",
"serde",
"serde_json",
"serde_urlencoded",
"sha1",
"serde_urlencoded 0.7.0",
"sha-1",
"slab",
"time",
"time 0.2.26",
]
[[package]]
@ -351,18 +336,14 @@ dependencies = [
[[package]]
name = "actix-tls"
version = "1.0.0"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4e5b4faaf105e9a6d389c606c298dcdb033061b00d532af9df56ff3a54995a8"
checksum = "24789b7d7361cf5503a504ebe1c10806896f61e96eca9a7350e23001aca715fb"
dependencies = [
"actix-codec 0.2.0",
"actix-rt 1.1.1",
"actix-codec 0.3.0",
"actix-service 1.0.6",
"actix-utils 1.0.6",
"derive_more 0.99.13",
"either",
"futures 0.3.15",
"log",
"actix-utils 2.0.0",
"futures-util",
]
[[package]]
@ -381,24 +362,6 @@ dependencies = [
"tokio-timer",
]
[[package]]
name = "actix-utils"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcf8f5631bf01adec2267808f00e228b761c60c0584cc9fa0b5364f41d147f4e"
dependencies = [
"actix-codec 0.2.0",
"actix-rt 1.1.1",
"actix-service 1.0.6",
"bitflags",
"bytes 0.5.6",
"either",
"futures 0.3.15",
"log",
"pin-project 0.4.28",
"slab",
]
[[package]]
name = "actix-utils"
version = "2.0.0"
@ -421,12 +384,12 @@ dependencies = [
[[package]]
name = "actix-web"
version = "2.0.0"
version = "3.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3158e822461040822f0dbf1735b9c2ce1f95f93b651d7a7aded00b1efbb1f635"
checksum = "e641d4a172e7faa0862241a20ff4f1f5ab0ab7c279f00c2d4587b77483477b86"
dependencies = [
"actix-codec 0.2.0",
"actix-http 1.0.1",
"actix-codec 0.3.0",
"actix-http 2.2.0",
"actix-macros",
"actix-router",
"actix-rt 1.1.1",
@ -435,31 +398,34 @@ dependencies = [
"actix-testing",
"actix-threadpool 0.3.3",
"actix-tls",
"actix-utils 1.0.6",
"actix-utils 2.0.0",
"actix-web-codegen",
"awc",
"bytes 0.5.6",
"derive_more 0.99.13",
"encoding_rs",
"futures 0.3.15",
"futures-channel",
"futures-core",
"futures-util",
"fxhash",
"log",
"mime",
"net2",
"pin-project 0.4.28",
"pin-project 1.0.7",
"regex",
"serde",
"serde_json",
"serde_urlencoded",
"time",
"serde_urlencoded 0.7.0",
"socket2",
"time 0.2.26",
"tinyvec",
"url 2.2.2",
]
[[package]]
name = "actix-web-codegen"
version = "0.2.2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a71bf475cbe07281d0b3696abb48212db118e7e23219f13596ce865235ff5766"
checksum = "ad26f77093333e0e7c6ffe54ebe3582d908a104e448723eec6d43d08b07143fb"
dependencies = [
"proc-macro2 1.0.26",
"quote 1.0.9",
@ -546,16 +512,17 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "awc"
version = "1.0.1"
version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7601d4d1d7ef2335d6597a41b5fe069f6ab799b85f53565ab390e7b7065aac5"
checksum = "b381e490e7b0cfc37ebc54079b0413d8093ef43d14a4e4747083f7fa47a9e691"
dependencies = [
"actix-codec 0.2.0",
"actix-http 1.0.1",
"actix-codec 0.3.0",
"actix-http 2.2.0",
"actix-rt 1.1.1",
"actix-service 1.0.6",
"base64 0.11.0",
"base64 0.13.0",
"bytes 0.5.6",
"cfg-if 1.0.0",
"derive_more 0.99.13",
"futures-core",
"log",
@ -564,7 +531,7 @@ dependencies = [
"rand 0.7.3",
"serde",
"serde_json",
"serde_urlencoded",
"serde_urlencoded 0.7.0",
]
[[package]]
@ -582,6 +549,12 @@ dependencies = [
"rustc-demangle",
]
[[package]]
name = "base-x"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b"
[[package]]
name = "base64"
version = "0.10.1"
@ -593,9 +566,9 @@ dependencies = [
[[package]]
name = "base64"
version = "0.11.0"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "bitflags"
@ -603,6 +576,15 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "block-buffer"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
dependencies = [
"generic-array",
]
[[package]]
name = "brotli-sys"
version = "0.3.2"
@ -623,6 +605,12 @@ dependencies = [
"libc",
]
[[package]]
name = "bumpalo"
version = "3.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe"
[[package]]
name = "byteorder"
version = "1.4.3"
@ -697,7 +685,7 @@ dependencies = [
"num-integer",
"num-traits",
"serde",
"time",
"time 0.1.43",
"winapi 0.3.9",
]
@ -758,18 +746,44 @@ dependencies = [
"tiny-keccak",
]
[[package]]
name = "const_fn"
version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "402da840495de3f976eaefc3485b7f5eb5b0bf9761f9a47be27fe975b3b8c2ec"
[[package]]
name = "convert_case"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "cookie"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03a5d7b21829bc7b4bf4754a978a241ae54ea55a40f92bb20216e54096f4b951"
dependencies = [
"percent-encoding 2.1.0",
"time 0.2.26",
"version_check",
]
[[package]]
name = "copyless"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2df960f5d869b2dd8532793fde43eb5427cceb126c929747a26823ab0eeb536"
[[package]]
name = "cpufeatures"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "281f563b2c3a0e535ab12d81d3c5859045795256ad269afa7c19542585b68f93"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.2.1"
@ -874,6 +888,15 @@ dependencies = [
"syn 1.0.72",
]
[[package]]
name = "digest"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
dependencies = [
"generic-array",
]
[[package]]
name = "dirs-next"
version = "2.0.0"
@ -895,6 +918,12 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "discard"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
[[package]]
name = "dtoa"
version = "0.4.8"
@ -1138,6 +1167,16 @@ dependencies = [
"byteorder",
]
[[package]]
name = "generic-array"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
dependencies = [
"typenum",
"version_check",
]
[[package]]
name = "getrandom"
version = "0.1.16"
@ -1157,7 +1196,7 @@ checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8"
dependencies = [
"cfg-if 1.0.0",
"libc",
"wasi 0.10.0+wasi-snapshot-preview1",
"wasi 0.10.2+wasi-snapshot-preview1",
]
[[package]]
@ -1199,7 +1238,7 @@ dependencies = [
"indexmap",
"slab",
"tokio",
"tokio-util 0.3.1",
"tokio-util",
"tracing",
"tracing-futures",
]
@ -1584,6 +1623,12 @@ version = "1.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3"
[[package]]
name = "opaque-debug"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "parking_lot"
version = "0.8.0"
@ -2000,6 +2045,16 @@ dependencies = [
"quick-error",
]
[[package]]
name = "resolv-conf"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00"
dependencies = [
"hostname",
"quick-error",
]
[[package]]
name = "rustc-demangle"
version = "0.1.19"
@ -2091,6 +2146,31 @@ dependencies = [
"url 2.2.2",
]
[[package]]
name = "serde_urlencoded"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9"
dependencies = [
"form_urlencoded",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "sha-1"
version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16"
dependencies = [
"block-buffer",
"cfg-if 1.0.0",
"cpufeatures",
"digest",
"opaque-debug",
]
[[package]]
name = "sha1"
version = "0.6.0"
@ -2207,6 +2287,64 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "standback"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff"
dependencies = [
"version_check",
]
[[package]]
name = "stdweb"
version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5"
dependencies = [
"discard",
"rustc_version",
"stdweb-derive",
"stdweb-internal-macros",
"stdweb-internal-runtime",
"wasm-bindgen",
]
[[package]]
name = "stdweb-derive"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef"
dependencies = [
"proc-macro2 1.0.26",
"quote 1.0.9",
"serde",
"serde_derive",
"syn 1.0.72",
]
[[package]]
name = "stdweb-internal-macros"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11"
dependencies = [
"base-x",
"proc-macro2 1.0.26",
"quote 1.0.9",
"serde",
"serde_derive",
"serde_json",
"sha1",
"syn 1.0.72",
]
[[package]]
name = "stdweb-internal-runtime"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0"
[[package]]
name = "string"
version = "0.2.1"
@ -2267,6 +2405,26 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "thiserror"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0"
dependencies = [
"proc-macro2 1.0.26",
"quote 1.0.9",
"syn 1.0.72",
]
[[package]]
name = "thread_local"
version = "1.1.3"
@ -2287,15 +2445,52 @@ dependencies = [
[[package]]
name = "time"
version = "0.1.44"
version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
dependencies = [
"libc",
"wasi 0.10.0+wasi-snapshot-preview1",
"winapi 0.3.9",
]
[[package]]
name = "time"
version = "0.2.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08a8cbfbf47955132d0202d1662f49b2423ae35862aee471f3ba4b133358f372"
dependencies = [
"const_fn",
"libc",
"standback",
"stdweb",
"time-macros",
"version_check",
"winapi 0.3.9",
]
[[package]]
name = "time-macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "957e9c6e26f12cb6d0dd7fc776bb67a706312e7299aed74c8dd5b17ebb27e2f1"
dependencies = [
"proc-macro-hack",
"time-macros-impl",
]
[[package]]
name = "time-macros-impl"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5c3be1edfad6027c69f5491cf4cb310d1a71ecd6af742788c6ff8bced86b8fa"
dependencies = [
"proc-macro-hack",
"proc-macro2 1.0.26",
"quote 1.0.9",
"standback",
"syn 1.0.72",
]
[[package]]
name = "tiny-keccak"
version = "2.0.2"
@ -2452,20 +2647,6 @@ dependencies = [
"tokio-reactor",
]
[[package]]
name = "tokio-util"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "571da51182ec208780505a32528fc5512a8fe1443ab960b3f2f3ef093cd16930"
dependencies = [
"bytes 0.5.6",
"futures-core",
"futures-sink",
"log",
"pin-project-lite 0.1.12",
"tokio",
]
[[package]]
name = "tokio-util"
version = "0.3.1"
@ -2538,20 +2719,20 @@ dependencies = [
[[package]]
name = "trust-dns-proto"
version = "0.18.0-alpha.2"
version = "0.19.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a7f3a2ab8a919f5eca52a468866a67ed7d3efa265d48a652a9a3452272b413f"
checksum = "1cad71a0c0d68ab9941d2fb6e82f8fb2e86d9945b94e1661dd0aaea2b88215a9"
dependencies = [
"async-trait",
"cfg-if 1.0.0",
"enum-as-inner 0.3.3",
"failure",
"futures 0.3.15",
"idna 0.2.3",
"lazy_static",
"log",
"rand 0.7.3",
"smallvec 1.6.1",
"socket2",
"thiserror",
"tokio",
"url 2.2.2",
]
@ -2569,7 +2750,7 @@ dependencies = [
"lazy_static",
"log",
"lru-cache",
"resolv-conf",
"resolv-conf 0.6.3",
"smallvec 0.6.14",
"tokio-executor",
"trust-dns-proto 0.7.4",
@ -2577,23 +2758,29 @@ dependencies = [
[[package]]
name = "trust-dns-resolver"
version = "0.18.0-alpha.2"
version = "0.19.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f90b1502b226f8b2514c6d5b37bafa8c200d7ca4102d57dc36ee0f3b7a04a2f"
checksum = "710f593b371175db53a26d0b38ed2978fafb9e9e8d3868b1acd753ea18df0ceb"
dependencies = [
"cfg-if 0.1.10",
"failure",
"futures 0.3.15",
"ipconfig",
"lazy_static",
"log",
"lru-cache",
"resolv-conf",
"resolv-conf 0.7.0",
"smallvec 1.6.1",
"thiserror",
"tokio",
"trust-dns-proto 0.18.0-alpha.2",
"trust-dns-proto 0.19.7",
]
[[package]]
name = "typenum"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06"
[[package]]
name = "unicode-bidi"
version = "0.3.5"
@ -2653,6 +2840,12 @@ dependencies = [
"percent-encoding 2.1.0",
]
[[package]]
name = "version_check"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
@ -2661,9 +2854,63 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
version = "0.10.0+wasi-snapshot-preview1"
version = "0.10.2+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "wasm-bindgen"
version = "0.2.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d54ee1d4ed486f78874278e63e4069fc1ab9f6a18ca492076ffb90c5eb2997fd"
dependencies = [
"cfg-if 1.0.0",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b33f6a0694ccfea53d94db8b2ed1c3a8a4c86dd936b13b9f0a15ec4a451b900"
dependencies = [
"bumpalo",
"lazy_static",
"log",
"proc-macro2 1.0.26",
"quote 1.0.9",
"syn 1.0.72",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "088169ca61430fe1e58b8096c24975251700e7b1f6fd91cc9d59b04fb9b18bd4"
dependencies = [
"quote 1.0.9",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97"
dependencies = [
"proc-macro2 1.0.26",
"quote 1.0.9",
"syn 1.0.72",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7cff876b8f18eed75a66cf49b65e7f967cb354a7aa16003fb55dbfd25b44b4f"
[[package]]
name = "widestring"

Просмотреть файл

@ -9,7 +9,7 @@ version = "0.2.0"
[dependencies]
actix = "^0.8.0"
actix-web = "^2"
actix-web = "^3"
actix-rt = "^1.1.1"
cadence = "^0.19.0"
envy = "^0.4.0"

Просмотреть файл

@ -62,7 +62,10 @@ impl MozLogFields {
.get("Accept-Language")
.and_then(|v| v.to_str().ok())
.map(|v| v.to_string());
self.remote = request.connection_info().remote().map(|r| r.to_string());
self.remote = request
.connection_info()
.remote_addr()
.map(|r| r.to_string());
self
}

Просмотреть файл

@ -152,7 +152,7 @@ pub mod tests {
metrics: StatsdClient::from_sink("test", TestMetricSink { log: log.clone() }),
..EndpointState::default()
};
let mut service = test::init_service(App::new().data(state).wrap(ResponseTimer).route(
let mut service = test::init_service(App::new().app_data(state).wrap(ResponseTimer).route(
"/",
web::get().to(|| HttpResponse::InternalServerError().finish()),
))
@ -186,7 +186,7 @@ pub mod tests {
metrics: StatsdClient::from_sink("test", TestMetricSink { log: log.clone() }),
..EndpointState::default()
};
let mut service = test::init_service(App::new().data(state).wrap(ResponseTimer).route(
let mut service = test::init_service(App::new().app_data(state).wrap(ResponseTimer).route(
"/",
web::get().to(|| HttpResponse::InternalServerError().finish()),
))