Run cargo upgrade (#2176)

* Run cargo upgrade and cargo update

* Fixing validation (#2179)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
Nutomic 2022-04-01 18:37:51 +00:00 committed by GitHub
parent bfae246734
commit c7f5337099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 807 additions and 848 deletions

1316
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -50,29 +50,29 @@ lemmy_routes = { version = "=0.16.2", path = "./crates/routes" }
diesel = "1.4.8" diesel = "1.4.8"
diesel_migrations = "1.4.0" diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
actix = "0.13.0" actix = "0.13.0"
actix-web = { version = "4.0.0", default-features = false, features = ["macros", "rustls"] } actix-web = { version = "4.0.1", default-features = false, features = ["macros", "rustls"] }
tracing = "0.1.29" tracing = "0.1.32"
tracing-actix-web = { version = "0.5.0", default-features = false } tracing-actix-web = { version = "0.5.1", default-features = false }
tracing-error = "0.2.0" tracing-error = "0.2.0"
tracing-log = "0.1.2" tracing-log = "0.1.2"
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] } tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
console-subscriber = { version = "0.1.0", optional = true } console-subscriber = { version = "0.1.3", optional = true }
strum = "0.23.0" strum = "0.24.0"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
openssl = "0.10.38" openssl = "0.10.38"
http-signature-normalization-actix = { version = "0.6.0-beta.6", default-features = false, features = ["sha-2"] } http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] }
tokio = { version = "1.14.0", features = ["sync", "tracing"] } tokio = { version = "1.17.0", features = ["sync", "tracing"] }
anyhow = "1.0.51" anyhow = "1.0.56"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"
reqwest-tracing = { version = "0.2.0", features = ["opentelemetry_0_16"] } reqwest-tracing = { version = "0.2.1", features = ["opentelemetry_0_16"] }
actix-rt = { version = "2.5.0", default-features = false } actix-rt = { version = "2.7.0", default-features = false }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
clokwerk = "0.3.5" clokwerk = "0.3.5"
doku = "0.10.2" doku = "0.11.0"
opentelemetry = { version = "0.16", features = ["rt-tokio"] } opentelemetry = { version = "0.17.0", features = ["rt-tokio"] }
opentelemetry-otlp = "0.9" opentelemetry-otlp = "0.10.0"
tracing-opentelemetry = "0.16" tracing-opentelemetry = "0.17.2"
parking_lot = "0.12" parking_lot = "0.12.0"

View file

@ -23,30 +23,30 @@ lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" }
lemmy_api_common = { version = "=0.16.2", path = "../api_common" } lemmy_api_common = { version = "=0.16.2", path = "../api_common" }
lemmy_websocket = { version = "=0.16.2", path = "../websocket" } lemmy_websocket = { version = "=0.16.2", path = "../websocket" }
diesel = "1.4.8" diesel = "1.4.8"
bcrypt = "0.10.1" bcrypt = "0.12.1"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
actix = "0.13.0" actix = "0.13.0"
actix-web = { version = "4.0.0", default-features = false } actix-web = { version = "4.0.1", default-features = false }
actix-rt = { version = "2.5.0", default-features = false } actix-rt = { version = "2.7.0", default-features = false }
rand = "0.8.4" rand = "0.8.5"
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
openssl = "0.10.38" openssl = "0.10.38"
http = "0.2.5" http = "0.2.6"
http-signature-normalization-actix = { version = "0.6.0-beta.6", default-features = false, features = ["sha-2"] } http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] }
base64 = "0.13.0" base64 = "0.13.0"
tokio = "1.14.0" tokio = "1.17.0"
futures = "0.3.17" futures = "0.3.21"
itertools = "0.10.3" itertools = "0.10.3"
uuid = { version = "0.8.2", features = ["serde", "v4"] } uuid = { version = "0.8.2", features = ["serde", "v4"] }
sha2 = "0.10.0" sha2 = "0.10.2"
async-trait = "0.1.52" async-trait = "0.1.53"
captcha = "0.0.8" captcha = "0.0.8"
anyhow = "1.0.51" anyhow = "1.0.56"
thiserror = "1.0.30" thiserror = "1.0.30"
tracing = "0.1.29" tracing = "0.1.32"
background-jobs = "0.11.0" background-jobs = "0.12.0"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }

View file

@ -18,12 +18,12 @@ lemmy_db_views_moderator = { version = "=0.16.2", path = "../db_views_moderator"
lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" } lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" }
lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" } lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" }
lemmy_utils = { version = "=0.16.2", path = "../utils" } lemmy_utils = { version = "=0.16.2", path = "../utils" }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
diesel = "1.4.8" diesel = "1.4.8"
actix-web = { version = "4.0.0", default-features = false, features = ["cookies"] } actix-web = { version = "4.0.1", default-features = false, features = ["cookies"] }
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
tracing = "0.1.29" tracing = "0.1.32"
url = "2.2.2" url = "2.2.2"
itertools = "0.10.3" itertools = "0.10.3"
rosetta-i18n = "0.1" rosetta-i18n = "0.1.2"

View file

@ -18,30 +18,30 @@ lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" }
lemmy_api_common = { version = "=0.16.2", path = "../api_common" } lemmy_api_common = { version = "=0.16.2", path = "../api_common" }
lemmy_websocket = { version = "=0.16.2", path = "../websocket" } lemmy_websocket = { version = "=0.16.2", path = "../websocket" }
diesel = "1.4.8" diesel = "1.4.8"
bcrypt = "0.10.1" bcrypt = "0.12.1"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
actix = "0.13.0" actix = "0.13.0"
actix-web = { version = "4.0.0", default-features = false } actix-web = { version = "4.0.1", default-features = false }
actix-rt = { version = "2.5.0", default-features = false } actix-rt = { version = "2.7.0", default-features = false }
tracing = "0.1.29" tracing = "0.1.32"
rand = "0.8.4" rand = "0.8.5"
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
openssl = "0.10.38" openssl = "0.10.38"
http = "0.2.5" http = "0.2.6"
http-signature-normalization-actix = { version = "0.6.0-beta.6", default-features = false, features = ["sha-2"] } http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] }
base64 = "0.13.0" base64 = "0.13.0"
tokio = "1.14.0" tokio = "1.17.0"
futures = "0.3.17" futures = "0.3.21"
itertools = "0.10.3" itertools = "0.10.3"
uuid = { version = "0.8.2", features = ["serde", "v4"] } uuid = { version = "0.8.2", features = ["serde", "v4"] }
sha2 = "0.10.0" sha2 = "0.10.2"
async-trait = "0.1.52" async-trait = "0.1.53"
anyhow = "1.0.51" anyhow = "1.0.56"
thiserror = "1.0.30" thiserror = "1.0.30"
background-jobs = "0.11.0" background-jobs = "0.12.0"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
webmention = "0.4.0" webmention = "0.4.0"

View file

@ -22,37 +22,37 @@ lemmy_api_common = { version = "=0.16.2", path = "../api_common" }
lemmy_websocket = { version = "=0.16.2", path = "../websocket" } lemmy_websocket = { version = "=0.16.2", path = "../websocket" }
diesel = "1.4.8" diesel = "1.4.8"
activitystreams-kinds = "0.2.1" activitystreams-kinds = "0.2.1"
bcrypt = "0.10.1" bcrypt = "0.12.1"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_with = "1.11.0" serde_with = "1.12.0"
actix = "0.13.0" actix = "0.13.0"
actix-web = { version = "4.0.0", default-features = false } actix-web = { version = "4.0.1", default-features = false }
actix-rt = { version = "2.5.0", default-features = false } actix-rt = { version = "2.7.0", default-features = false }
tracing = "0.1.29" tracing = "0.1.32"
rand = "0.8.4" rand = "0.8.5"
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
percent-encoding = "2.1.0" percent-encoding = "2.1.0"
http = "0.2.5" http = "0.2.6"
http-signature-normalization-actix = { version = "0.6.0-beta.6", default-features = false, features = ["server", "sha-2"] } http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["server", "sha-2"] }
tokio = "1.14.0" tokio = "1.17.0"
futures = "0.3.17" futures = "0.3.21"
itertools = "0.10.3" itertools = "0.10.3"
uuid = { version = "0.8.2", features = ["serde", "v4"] } uuid = { version = "0.8.2", features = ["serde", "v4"] }
sha2 = "0.10.0" sha2 = "0.10.2"
async-trait = "0.1.52" async-trait = "0.1.53"
anyhow = "1.0.51" anyhow = "1.0.56"
thiserror = "1.0.30" thiserror = "1.0.30"
background-jobs = "0.11.0" background-jobs = "0.12.0"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
html2md = "0.2.13" html2md = "0.2.13"
once_cell = "1.8.0" once_cell = "1.10.0"
parking_lot = "0.12" parking_lot = "0.12.0"
[dev-dependencies] [dev-dependencies]
serial_test = "0.5.1" serial_test = "0.6.0"
assert-json-diff = "2.0.1" assert-json-diff = "2.0.1"
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"

View file

@ -11,21 +11,21 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
lemmy_utils = { version = "=0.16.2", path = "../utils" } lemmy_utils = { version = "=0.16.2", path = "../utils" }
lemmy_apub_lib_derive = { version = "=0.16.2", path = "../apub_lib_derive" } lemmy_apub_lib_derive = { version = "=0.16.2", path = "../apub_lib_derive" }
chrono = "0.4.19" chrono = "0.4.19"
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
async-trait = "0.1.52" async-trait = "0.1.53"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
anyhow = "1.0.51" anyhow = "1.0.56"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"
tracing = "0.1.29" tracing = "0.1.32"
base64 = "0.13.0" base64 = "0.13.0"
openssl = "0.10.38" openssl = "0.10.38"
once_cell = "1.8.0" once_cell = "1.10.0"
http = "0.2.5" http = "0.2.6"
sha2 = "0.10.0" sha2 = "0.10.2"
actix-web = { version = "4.0.0", default-features = false } actix-web = { version = "4.0.1", default-features = false }
http-signature-normalization-actix = { version = "0.6.0-beta.6", default-features = false, features = ["server", "sha-2"] } http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["server", "sha-2"] }
http-signature-normalization-reqwest = { version = "0.4.0", default-features = false, features = ["sha-2", "middleware"] } http-signature-normalization-reqwest = { version = "0.5.0", default-features = false, features = ["sha-2", "middleware"] }
background-jobs = "0.11.0" background-jobs = "0.12.0"
diesel = "1.4.8" diesel = "1.4.8"

View file

@ -11,9 +11,9 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
proc-macro = true proc-macro = true
[dev-dependencies] [dev-dependencies]
trybuild = { version = "1.0.53", features = ["diff"] } trybuild = { version = "1.0.57", features = ["diff"] }
[dependencies] [dependencies]
proc-macro2 = "1.0.33" proc-macro2 = "1.0.36"
syn = "1.0.82" syn = "1.0.90"
quote = "1.0.10" quote = "1.0.17"

View file

@ -18,16 +18,16 @@ lemmy_apub_lib = { version = "=0.16.2", path = "../apub_lib" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
diesel_migrations = "1.4.0" diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
diesel-derive-newtype = "0.1.2" diesel-derive-newtype = "0.1.2"
regex = "1.5.4" regex = "1.5.5"
once_cell = "1.8.0" once_cell = "1.10.0"
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
sha2 = "0.10.0" sha2 = "0.10.2"
bcrypt = "0.10.1" bcrypt = "0.12.1"
[dev-dependencies] [dev-dependencies]
serial_test = "0.5.1" serial_test = "0.6.0"

View file

@ -13,9 +13,9 @@ doctest = false
[dependencies] [dependencies]
lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" } lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
tracing = "0.1.29" tracing = "0.1.32"
url = "2.2.2" url = "2.2.2"
[dev-dependencies] [dev-dependencies]
serial_test = "0.5.1" serial_test = "0.6.0"

View file

@ -13,4 +13,4 @@ doctest = false
[dependencies] [dependencies]
lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" } lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }

View file

@ -13,4 +13,4 @@ doctest = false
[dependencies] [dependencies]
lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" } lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }

View file

@ -20,18 +20,18 @@ lemmy_api_common = { version = "=0.16.2", path = "../api_common" }
lemmy_apub = { version = "=0.16.2", path = "../apub" } lemmy_apub = { version = "=0.16.2", path = "../apub" }
diesel = "1.4.8" diesel = "1.4.8"
actix = "0.13.0" actix = "0.13.0"
actix-web = { version = "4.0.0", default-features = false, features = ["rustls"] } actix-web = { version = "4.0.1", default-features = false, features = ["rustls"] }
actix-web-actors = { version = "4.1.0", default-features = false } actix-web-actors = { version = "4.1.0", default-features = false }
sha2 = "0.10.0" sha2 = "0.10.2"
anyhow = "1.0.51" anyhow = "1.0.56"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
futures = "0.3.17" futures = "0.3.21"
reqwest = { version = "0.11.7", features = ["stream"] } reqwest = { version = "0.11.10", features = ["stream"] }
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"
rss = "2.0.0" rss = "2.0.0"
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
strum = "0.23.0" strum = "0.24.0"
once_cell = "1.8.0" once_cell = "1.10.0"
tracing = "0.1.29" tracing = "0.1.32"
tokio = { version = "1.14.0", features = ["sync"] } tokio = { version = "1.17.0", features = ["sync"] }

View file

@ -13,42 +13,42 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
regex = "1.5.4" regex = "1.5.5"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
lettre = "0.10.0-rc.4" lettre = "0.10.0-rc.4"
tracing = "0.1.29" tracing = "0.1.32"
tracing-error = "0.2.0" tracing-error = "0.2.0"
itertools = "0.10.3" itertools = "0.10.3"
rand = "0.8.4" rand = "0.8.5"
percent-encoding = "2.1.0" percent-encoding = "2.1.0"
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
thiserror = "1.0.30" thiserror = "1.0.30"
comrak = { version = "0.12.1", default-features = false } comrak = { version = "0.12.1", default-features = false }
once_cell = "1.8.0" once_cell = "1.10.0"
openssl = "0.10.38" openssl = "0.10.38"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
actix-web = { version = "4.0.0", default-features = false, features = ["rustls"] } actix-web = { version = "4.0.1", default-features = false, features = ["rustls"] }
actix-rt = { version = "2.5.0", default-features = false } actix-rt = { version = "2.7.0", default-features = false }
anyhow = "1.0.51" anyhow = "1.0.56"
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"
tokio = { version = "1.14.0", features = ["sync"] } tokio = { version = "1.17.0", features = ["sync"] }
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
futures = "0.3.17" futures = "0.3.21"
diesel = "1.4.8" diesel = "1.4.8"
http = "0.2.5" http = "0.2.6"
deser-hjson = "1.0.2" deser-hjson = "1.0.2"
smart-default = "0.6.0" smart-default = "0.6.0"
webpage = { version = "1.4.0", default-features = false, features = ["serde"] } webpage = { version = "1.4.0", default-features = false, features = ["serde"] }
jsonwebtoken = "7.2.0" jsonwebtoken = "8.0.1"
doku = "0.10.2" doku = "0.11.0"
uuid = { version = "0.8.2", features = ["serde", "v4"] } uuid = { version = "0.8.2", features = ["serde", "v4"] }
encoding = "0.2.33" encoding = "0.2.33"
html2text = "0.2.1" html2text = "0.3.1"
rosetta-i18n = "0.1" rosetta-i18n = "0.1.2"
parking_lot = "0.12" parking_lot = "0.12.0"
[build-dependencies] [build-dependencies]
rosetta-build = "0.1" rosetta-build = "0.1.2"

View file

@ -16,12 +16,11 @@ pub struct Claims {
impl Claims { impl Claims {
pub fn decode(jwt: &str, jwt_secret: &str) -> Result<TokenData<Claims>, LemmyError> { pub fn decode(jwt: &str, jwt_secret: &str) -> Result<TokenData<Claims>, LemmyError> {
let v = Validation { let mut validation = Validation::default();
validate_exp: false, validation.validate_exp = false;
..Validation::default() validation.required_spec_claims.remove("exp");
};
let key = DecodingKey::from_secret(jwt_secret.as_ref()); let key = DecodingKey::from_secret(jwt_secret.as_ref());
Ok(decode::<Claims>(jwt, &key, &v)?) Ok(decode::<Claims>(jwt, &key, &validation)?)
} }
pub fn jwt(local_user_id: i32, jwt_secret: &str, hostname: &str) -> Result<Jwt, LemmyError> { pub fn jwt(local_user_id: i32, jwt_secret: &str, hostname: &str) -> Result<Jwt, LemmyError> {

View file

@ -18,22 +18,22 @@ lemmy_api_common = { version = "=0.16.2", path = "../api_common" }
lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" } lemmy_db_schema = { version = "=0.16.2", path = "../db_schema" }
lemmy_db_views = { version = "=0.16.2", path = "../db_views" } lemmy_db_views = { version = "=0.16.2", path = "../db_views" }
lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" } lemmy_db_views_actor = { version = "=0.16.2", path = "../db_views_actor" }
reqwest = { version = "0.11.7", features = ["json"] } reqwest = { version = "0.11.10", features = ["json"] }
reqwest-middleware = "0.1.3" reqwest-middleware = "0.1.5"
tracing = "0.1.29" tracing = "0.1.32"
rand = "0.8.4" rand = "0.8.5"
serde = { version = "1.0.131", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.72", features = ["preserve_order"] } serde_json = { version = "1.0.79", features = ["preserve_order"] }
actix = "0.13.0" actix = "0.13.0"
anyhow = "1.0.51" anyhow = "1.0.56"
diesel = "1.4.8" diesel = "1.4.8"
background-jobs = "0.11.0" background-jobs = "0.12.0"
tokio = "1.14.0" tokio = "1.17.0"
strum = "0.23.0" strum = "0.24.0"
strum_macros = "0.23.1" strum_macros = "0.24.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
actix-web = { version = "4.0.0", default-features = false, features = ["rustls"] } actix-web = { version = "4.0.1", default-features = false, features = ["rustls"] }
actix-web-actors = { version = "4.1.0", default-features = false } actix-web-actors = { version = "4.1.0", default-features = false }
opentelemetry = "0.16" opentelemetry = "0.17.0"
tracing-opentelemetry = "0.16" tracing-opentelemetry = "0.17.2"
parking_lot = "0.12" parking_lot = "0.12.0"

View file

@ -71,7 +71,7 @@ fn root_span() -> tracing::Span {
trace_id = tracing::field::Empty, trace_id = tracing::field::Empty,
); );
{ {
let trace_id = span.context().span().span_context().trace_id().to_hex(); let trace_id = span.context().span().span_context().trace_id().to_string();
span.record("trace_id", &tracing::field::display(trace_id)); span.record("trace_id", &tracing::field::display(trace_id));
} }