Update dependencies

This commit is contained in:
Lennart
2024-09-19 15:27:26 +02:00
parent 744c44b3be
commit 436d6fd41c
9 changed files with 388 additions and 238 deletions

View File

@@ -3,12 +3,11 @@ name = "rustical_auth"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4.8"
actix-web = "4.9"
actix-web-httpauth = "0.8"
derive_more = "0.99"
derive_more = "1.0"
futures-util = "0.3"
password-auth = "1.0"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"

View File

@@ -1,13 +1,14 @@
use actix_web::{http::StatusCode, HttpResponse};
use derive_more::{Display, Error};
use derive_more::Display;
use thiserror::Error;
#[derive(Debug, Display, Error, Clone)]
pub enum Error {
#[display(fmt = "Internal server error")]
#[display("Internal server error")]
InternalError,
#[display(fmt = "Not found")]
#[display("Not found")]
NotFound,
#[display(fmt = "Bad request")]
#[display("Bad request")]
BadRequest,
Unauthorized,
}