1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

chore: update uuid dep

This commit is contained in:
Rob Ede 2024-06-05 05:10:46 +01:00
parent 049015b187
commit 1bae92b0fb
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
7 changed files with 22 additions and 20 deletions

28
Cargo.lock generated
View File

@ -1275,7 +1275,7 @@ dependencies = [
"http 0.2.9", "http 0.2.9",
"percent-encoding", "percent-encoding",
"tracing", "tracing",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -1909,7 +1909,7 @@ dependencies = [
"serde_bytes", "serde_bytes",
"serde_json", "serde_json",
"time", "time",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -2814,7 +2814,7 @@ dependencies = [
"pq-sys", "pq-sys",
"r2d2", "r2d2",
"time", "time",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -2827,7 +2827,7 @@ dependencies = [
"env_logger", "env_logger",
"log", "log",
"serde", "serde",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -4543,7 +4543,7 @@ dependencies = [
"mysql 24.0.0", "mysql 24.0.0",
"r2d2", "r2d2",
"r2d2_mysql", "r2d2_mysql",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -5147,7 +5147,7 @@ dependencies = [
"trust-dns-proto", "trust-dns-proto",
"trust-dns-resolver", "trust-dns-resolver",
"typed-builder", "typed-builder",
"uuid 1.7.0", "uuid 1.8.0",
"webpki-roots 0.25.4", "webpki-roots 0.25.4",
] ]
@ -5179,7 +5179,7 @@ dependencies = [
"futures-util", "futures-util",
"log", "log",
"sanitize-filename", "sanitize-filename",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -5299,7 +5299,7 @@ dependencies = [
"subprocess", "subprocess",
"thiserror", "thiserror",
"time", "time",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -6725,7 +6725,7 @@ dependencies = [
"rkyv_derive", "rkyv_derive",
"seahash", "seahash",
"tinyvec", "tinyvec",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -7448,7 +7448,7 @@ dependencies = [
"serde_json", "serde_json",
"sparkpost", "sparkpost",
"time", "time",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -8663,7 +8663,7 @@ dependencies = [
"pin-project", "pin-project",
"tracing", "tracing",
"tracing-opentelemetry", "tracing-opentelemetry",
"uuid 1.7.0", "uuid 1.8.0",
] ]
[[package]] [[package]]
@ -8873,7 +8873,7 @@ version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [ dependencies = [
"cfg-if 1.0.0", "cfg-if 0.1.10",
"rand 0.8.5", "rand 0.8.5",
"static_assertions", "static_assertions",
] ]
@ -9137,9 +9137,9 @@ checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
[[package]] [[package]]
name = "uuid" name = "uuid"
version = "1.7.0" version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0"
dependencies = [ dependencies = [
"atomic", "atomic",
"getrandom 0.2.12", "getrandom 0.2.12",

View File

@ -115,3 +115,4 @@ tokio-util = "0.7.4"
tokio-stream = "0.1.1" tokio-stream = "0.1.1"
tracing = "0.1.30" tracing = "0.1.30"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] } tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
uuid = { version = "1.6", features = ["v4", "v7", "serde"] }

View File

@ -21,4 +21,4 @@ serde_json.workspace = true
serde.workspace = true serde.workspace = true
sparkpost = "0.5" sparkpost = "0.5"
time = "0.3" time = "0.3"
uuid = { version = "1", features = ["v4", "serde"] } uuid.workspace = true

View File

@ -1,6 +1,7 @@
use actix_web::{web, HttpResponse}; use actix_web::{web, HttpResponse};
use diesel::prelude::*; use diesel::prelude::*;
use serde::Deserialize; use serde::Deserialize;
use uuid::Uuid;
use crate::{ use crate::{
errors::ServiceError, errors::ServiceError,
@ -40,7 +41,7 @@ fn query(
let mut conn = pool.get().unwrap(); let mut conn = pool.get().unwrap();
let invitation_id = uuid::Uuid::parse_str(&invitation_id)?; let invitation_id = invitation_id.parse::<Uuid>()?;
invitations invitations
.filter(id.eq(invitation_id)) .filter(id.eq(invitation_id))

View File

@ -5,9 +5,9 @@ edition = "2021"
[dependencies] [dependencies]
actix-web.workspace = true actix-web.workspace = true
diesel = { version = "2", features = ["sqlite", "r2d2"] } diesel = { version = "2", features = ["sqlite", "r2d2", "uuid"] }
dotenvy.workspace = true dotenvy.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
uuid = { version = "1", features = ["v4", "serde"] } uuid.workspace = true

View File

@ -12,4 +12,4 @@ env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
sanitize-filename = "0.5" sanitize-filename = "0.5"
uuid = { version = "1", features = ["v4"] } uuid.workspace = true

View File

@ -17,4 +17,4 @@ r2d2_mysql = "24"
dotenvy.workspace = true dotenvy.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
uuid = { version = "1", features = ["v4", "serde"] } uuid.workspace = true