async mutex

This commit is contained in:
JMARyA 2023-01-25 08:56:14 +01:00
parent cef45e43a6
commit 5895bb7d56
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 7 additions and 2 deletions

4
Cargo.lock generated
View file

@ -961,6 +961,7 @@ dependencies = [
"reqwest",
"serde",
"serde_json",
"tokio",
"web-base",
]
@ -1801,12 +1802,13 @@ checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
[[package]]
name = "web-base"
version = "0.1.0"
source = "git+https://git.hydrar.de/jmarya/web-base#4ac976ed197f9feefa577e02c0f9c810f0623ee2"
source = "git+https://git.hydrar.de/jmarya/web-base#0920a1fcbc15c4ec5bbf131103e98e44cb2a0968"
dependencies = [
"actix-files",
"actix-web",
"maud",
"reqwest",
"tokio",
"url",
"uuid",
]

View file

@ -17,3 +17,5 @@ serde = {version = "1.0.147", features = ["derive"] }
serde_json = "1.0.87"
reqwest = "0.11"
maud = "0.24.0"
tokio = { version = "1", features = ["sync"] }

View file

@ -3,7 +3,8 @@ mod msg;
mod notification;
mod pages;
use std::sync::{Arc, Mutex};
use std::sync::Arc;
use tokio::sync::Mutex;
use actix_web::*;