Update actix libraries

This commit is contained in:
Valentin Tolmer 2021-08-22 16:30:25 +02:00 committed by nitnelave
parent 860ca8d41c
commit 87516eb218
3 changed files with 25 additions and 66 deletions

65
Cargo.lock generated
View File

@ -4,9 +4,9 @@ version = 3
[[package]] [[package]]
name = "actix" name = "actix"
version = "0.11.0-beta.3" version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0865a034bd84c1cfb2afa66bfd22195b280650817729086268f7744a493fa292" checksum = "3720d0064a0ce5c0de7bd93bdb0a6caebab2a9b5668746145d7b3b0c5da02914"
dependencies = [ dependencies = [
"actix-rt", "actix-rt",
"actix_derive", "actix_derive",
@ -44,8 +44,9 @@ dependencies = [
[[package]] [[package]]
name = "actix-files" name = "actix-files"
version = "0.6.0-beta.5" version = "0.6.0-beta.6"
source = "git+https://github.com/actix/actix-web?rev=2d8530feb37447a1dd2e58700b31b987ae8163ef#2d8530feb37447a1dd2e58700b31b987ae8163ef" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89b864740ed79d26e6e3c33fd2a1e03a071daaa43c88e6900ff1f9378fca88ce"
dependencies = [ dependencies = [
"actix-http", "actix-http",
"actix-service", "actix-service",
@ -65,9 +66,9 @@ dependencies = [
[[package]] [[package]]
name = "actix-http" name = "actix-http"
version = "3.0.0-beta.7" version = "3.0.0-beta.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a6b8dd8ffcb0277cebef2c4b496821c888e0320817c1862a83359d4e384797a" checksum = "01260589f1aafad11224002741eb37bc603b4ce55b4e3556d2b2122f9aac7c51"
dependencies = [ dependencies = [
"actix-codec", "actix-codec",
"actix-rt", "actix-rt",
@ -143,11 +144,10 @@ dependencies = [
[[package]] [[package]]
name = "actix-server" name = "actix-server"
version = "2.0.0-beta.3" version = "2.0.0-beta.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a99198727204a48f82559c18e4b0ba3197b97d5f4576a32bdbef371f3b4599c1" checksum = "26369215fcc3b0176018b3b68756a8bcc275bb000e6212e454944913a1f9bf87"
dependencies = [ dependencies = [
"actix-codec",
"actix-rt", "actix-rt",
"actix-service", "actix-service",
"actix-utils", "actix-utils",
@ -199,9 +199,9 @@ dependencies = [
[[package]] [[package]]
name = "actix-web" name = "actix-web"
version = "4.0.0-beta.7" version = "4.0.0-beta.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "944b85410c2f6e22529d25e92506491f669c3336b8dc50ad2603f4f611ffdaf3" checksum = "c503f726f895e55dac39adeafd14b5ee00cc956796314e9227fc7ae2e176f443"
dependencies = [ dependencies = [
"actix-codec", "actix-codec",
"actix-http", "actix-http",
@ -214,6 +214,7 @@ dependencies = [
"actix-web-codegen", "actix-web-codegen",
"ahash 0.7.4", "ahash 0.7.4",
"bytes", "bytes",
"cfg-if 1.0.0",
"cookie", "cookie",
"derive_more", "derive_more",
"either", "either",
@ -250,8 +251,9 @@ dependencies = [
[[package]] [[package]]
name = "actix-web-httpauth" name = "actix-web-httpauth"
version = "0.6.0-beta.1" version = "0.6.0-beta.2"
source = "git+https://github.com/nitnelave/actix-extras?rev=39b03cb5d2734482328722219c528cb0a6d375d7#39b03cb5d2734482328722219c528cb0a6d375d7" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "264d0eb4698d59493cafc96554c3919837115f8c4e9040a3790c2b55400ff758"
dependencies = [ dependencies = [
"actix-service", "actix-service",
"actix-web", "actix-web",
@ -1886,22 +1888,6 @@ dependencies = [
"vcpkg", "vcpkg",
] ]
[[package]]
name = "opentelemetry"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b91cea1dfd50064e52db033179952d18c770cbc5dfefc8eba45d619357ba3914"
dependencies = [
"async-trait",
"futures",
"js-sys",
"lazy_static",
"percent-encoding",
"pin-project",
"rand 0.8.3",
"thiserror",
]
[[package]] [[package]]
name = "orion" name = "orion"
version = "0.16.0" version = "0.16.0"
@ -2955,18 +2941,14 @@ dependencies = [
[[package]] [[package]]
name = "tracing-actix-web" name = "tracing-actix-web"
version = "0.4.0-beta.7" version = "0.4.0-beta.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e72e0d165f1cf29043169743eebaa9e565cc41131e732208e536e1e2432c039" checksum = "29fe304c04a237147370dd8237cdf8e8b1056e5f732cec354f6512a756b0f28a"
dependencies = [ dependencies = [
"actix-http",
"actix-service",
"actix-web", "actix-web",
"futures", "futures",
"opentelemetry",
"tracing", "tracing",
"tracing-futures", "tracing-futures",
"tracing-opentelemetry",
"uuid", "uuid",
] ]
@ -3011,19 +2993,6 @@ dependencies = [
"tracing-core", "tracing-core",
] ]
[[package]]
name = "tracing-opentelemetry"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99003208b647dae59dcefc49c98aecaa3512fbc29351685d4b9ef23a9218458e"
dependencies = [
"opentelemetry",
"tracing",
"tracing-core",
"tracing-log",
"tracing-subscriber",
]
[[package]] [[package]]
name = "tracing-serde" name = "tracing-serde"
version = "0.1.2" version = "0.1.2"

View File

@ -8,12 +8,14 @@ name = "lldap"
version = "0.1.0" version = "0.1.0"
[dependencies] [dependencies]
actix = "0.11.0-beta.3" actix = "0.12"
actix-http = "3.0.0-beta.6" actix-files = "0.6.0-beta.6"
actix-rt = "2.1.0" actix-http = "3.0.0-beta.9"
actix-server = "2.0.0-beta.3" actix-rt = "2.2.0"
actix-server = "2.0.0-beta.5"
actix-service = "2.0.0" actix-service = "2.0.0"
actix-web = "4.0.0-beta.3" actix-web = "4.0.0-beta.8"
actix-web-httpauth = "0.6.0-beta.2"
anyhow = "*" anyhow = "*"
async-trait = "0.1" async-trait = "0.1"
base64 = "0.13" base64 = "0.13"
@ -70,17 +72,5 @@ features = ["with-chrono"]
features = ["env", "toml"] features = ["env", "toml"]
version = "*" version = "*"
[dependencies.actix-files]
git = "https://github.com/actix/actix-web"
rev = "2d8530feb37447a1dd2e58700b31b987ae8163ef"
#[dependencies.actix-cors]
#git = "https://github.com/nitnelave/actix-extras"
#rev = "39b03cb5d2734482328722219c528cb0a6d375d7"
[dependencies.actix-web-httpauth]
git = "https://github.com/nitnelave/actix-extras"
rev = "39b03cb5d2734482328722219c528cb0a6d375d7"
[dev-dependencies] [dev-dependencies]
mockall = "0.9.1" mockall = "0.9.1"

View File

@ -49,7 +49,7 @@ fn http_config<Backend>(
) where ) where
Backend: TcpBackendHandler + BackendHandler + LoginHandler + OpaqueHandler + 'static, Backend: TcpBackendHandler + BackendHandler + LoginHandler + OpaqueHandler + 'static,
{ {
cfg.data(AppState::<Backend> { cfg.app_data(AppState::<Backend> {
backend_handler, backend_handler,
jwt_key: Hmac::new_varkey(jwt_secret.as_bytes()).unwrap(), jwt_key: Hmac::new_varkey(jwt_secret.as_bytes()).unwrap(),
jwt_blacklist: RwLock::new(jwt_blacklist), jwt_blacklist: RwLock::new(jwt_blacklist),