updating deps

This commit is contained in:
neil 2021-03-21 23:52:17 +01:00
parent 554cbd25ab
commit e012505247
3 changed files with 7 additions and 7 deletions

View File

@ -11,12 +11,12 @@ mysql = [ "diesel/mysql" ]
sqlite = [ "diesel/sqlite" ]
[dependencies]
actix-rt = "1.1.1"
actix-web = "3.2.0"
actix-files = "0.4.0"
actix-rt = "2.1.0"
actix-web = "3.3.2"
actix-files = "0.5.0"
diesel = { version = "1.4", features = ["r2d2", "chrono"] }
diesel_migrations = "1.4"
url = "2.1"
url = "2.2"
toml = "0.5"
lazy_static = "1.4"
serde = "1.0"
@ -25,6 +25,6 @@ serde_derive = "1.0"
chrono = { version = "0.4", features = ["serde"] }
regex = "1.3"
base64 = "0.13"
rand = "0.7"
rand = "0.8"
askama = "0.10"
csrf = "0.4"

View File

@ -282,6 +282,6 @@ pub fn gen_name() -> String {
pub fn list_rand(list: &[String]) -> &String {
let mut rng = rand::thread_rng();
let roll = rng.gen_range(0, list.len() - 1);
let roll = rng.gen_range(0..list.len() - 1);
&list[roll]
}

View File

@ -49,7 +49,7 @@ embed_migrations!("migrations/mysql");
type DbPool = r2d2::Pool<ConnectionManager<DbConn>>;
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
/* std::env::set_var("RUST_LOG", "actix_web=debug");
env_logger::init();*/