From 92d636dbedb9b5421e4614d4927d9f5fc77ab866 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 27 Dec 2023 15:26:09 +0900 Subject: [PATCH] chore: upgrade Rusty deps --- packages/backend/native-utils/Cargo.lock | 14 ++++---- packages/backend/native-utils/Cargo.toml | 32 +++++++++---------- .../backend/native-utils/migration/Cargo.toml | 18 +++++------ 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/packages/backend/native-utils/Cargo.lock b/packages/backend/native-utils/Cargo.lock index e8b81652..c2fc047a 100644 --- a/packages/backend/native-utils/Cargo.lock +++ b/packages/backend/native-utils/Cargo.lock @@ -1891,9 +1891,9 @@ dependencies = [ [[package]] name = "redis" -version = "0.23.3" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f49cdc0bb3f412bf8e7d1bd90fe1d9eb10bc5c399ba90973c14662a27b3f8ba" +checksum = "c580d9cbbe1d1b479e8d67cf9daf6a62c957e6846048408b80b43ac3f6af84cd" dependencies = [ "async-trait", "bytes", @@ -1904,6 +1904,8 @@ dependencies = [ "pin-project-lite", "rustls", "rustls-native-certs", + "rustls-pemfile", + "rustls-webpki", "ryu", "sha1_smol", "socket2 0.4.10", @@ -3275,9 +3277,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "utoipa" -version = "3.5.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d82b1bc5417102a73e8464c686eef947bdfb99fcdfc0a4f228e81afa9526470a" +checksum = "0ff05e3bac2c9428f57ade702667753ca3f5cf085e2011fe697de5bfd49aa72d" dependencies = [ "indexmap", "serde", @@ -3287,9 +3289,9 @@ dependencies = [ [[package]] name = "utoipa-gen" -version = "3.5.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d96dcd6fc96f3df9b3280ef480770af1b7c5d14bc55192baa9b067976d920c" +checksum = "5f0b6f4667edd64be0e820d6631a60433a269710b6ee89ac39525b872b76d61d" dependencies = [ "proc-macro-error", "proc-macro2", diff --git a/packages/backend/native-utils/Cargo.toml b/packages/backend/native-utils/Cargo.toml index 3970e0b8..f84d9998 100644 --- a/packages/backend/native-utils/Cargo.toml +++ b/packages/backend/native-utils/Cargo.toml @@ -14,33 +14,33 @@ napi = ["dep:napi", "dep:napi-derive"] crate-type = ["cdylib", "lib"] [dependencies] -async-trait = "0.1.68" +async-trait = "0.1.75" cfg-if = "1.0.0" -chrono = "0.4.24" -cuid2 = "0.1.0" +chrono = "0.4.31" +cuid2 = "0.1.2" derive_more = "0.99.17" -jsonschema = "0.17.0" -once_cell = "1.17.1" -parse-display = "0.8.0" +jsonschema = "0.17.1" +once_cell = "1.19.0" +parse-display = "0.8.2" rand = "0.8.5" -schemars = { version = "0.8.12", features = ["chrono"] } +schemars = { version = "0.8.16", features = ["chrono"] } sea-orm = { version = "0.12.10", features = ["sqlx-postgres", "runtime-tokio-rustls"] } -serde = { version = "1.0.163", features = ["derive"] } -serde_json = "1.0.96" -thiserror = "1.0.40" -tokio = { version = "1.28.1", features = ["full"] } -utoipa = "3.3.0" +serde = { version = "1.0.193", features = ["derive"] } +serde_json = "1.0.108" +thiserror = "1.0.52" +tokio = { version = "1.35.1", features = ["full"] } +utoipa = "4.1.0" # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix -napi = { version = "2.13.1", default-features = false, features = ["napi6", "tokio_rt"], optional = true } -napi-derive = { version = "2.12.0", optional = true } +napi = { version = "2.14.1", default-features = false, features = ["napi6", "tokio_rt"], optional = true } +napi-derive = { version = "2.14.5", optional = true } basen = "0.1.0" [dev-dependencies] -pretty_assertions = "1.3.0" +pretty_assertions = "1.4.0" [build-dependencies] -napi-build = "2.0.1" +napi-build = "2.1.0" [profile.release] lto = true diff --git a/packages/backend/native-utils/migration/Cargo.toml b/packages/backend/native-utils/migration/Cargo.toml index 171ec172..39047906 100644 --- a/packages/backend/native-utils/migration/Cargo.toml +++ b/packages/backend/native-utils/migration/Cargo.toml @@ -13,17 +13,17 @@ default = [] convert = ["dep:native-utils", "dep:indicatif", "dep:futures"] [dependencies] -serde_json = "1.0.96" +serde_json = "1.0.108" native-utils = { path = "../", optional = true } -indicatif = { version = "0.17.4", features = ["tokio"], optional = true } -tokio = { version = "1.28.2", features = ["full"] } -futures = { version = "0.3.28", optional = true } -serde_yaml = "0.9.21" -serde = { version = "1.0.163", features = ["derive"] } -urlencoding = "2.1.2" -redis = { version = "0.23.0", features = ["tokio-rustls-comp"] } +indicatif = { version = "0.17.7", features = ["tokio"], optional = true } +tokio = { version = "1.35.1", features = ["full"] } +futures = { version = "0.3.30", optional = true } +serde_yaml = "0.9.29" +serde = { version = "1.0.193", features = ["derive"] } +urlencoding = "2.1.3" +redis = { version = "0.24.0", features = ["tokio-rustls-comp"] } sea-orm = "0.12.10" -url = { version = "2.4.0", features = ["serde"] } +url = { version = "2.5.0", features = ["serde"] } basen = "0.1.0" [dependencies.sea-orm-migration]