mirror of
https://git.42l.fr/neil/sncf.git
synced 2024-05-21 15:16:34 +02:00
updating deps
This commit is contained in:
parent
554cbd25ab
commit
e012505247
10
Cargo.toml
10
Cargo.toml
|
@ -11,12 +11,12 @@ mysql = [ "diesel/mysql" ]
|
||||||
sqlite = [ "diesel/sqlite" ]
|
sqlite = [ "diesel/sqlite" ]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-rt = "1.1.1"
|
actix-rt = "2.1.0"
|
||||||
actix-web = "3.2.0"
|
actix-web = "3.3.2"
|
||||||
actix-files = "0.4.0"
|
actix-files = "0.5.0"
|
||||||
diesel = { version = "1.4", features = ["r2d2", "chrono"] }
|
diesel = { version = "1.4", features = ["r2d2", "chrono"] }
|
||||||
diesel_migrations = "1.4"
|
diesel_migrations = "1.4"
|
||||||
url = "2.1"
|
url = "2.2"
|
||||||
toml = "0.5"
|
toml = "0.5"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
|
@ -25,6 +25,6 @@ serde_derive = "1.0"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
regex = "1.3"
|
regex = "1.3"
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
rand = "0.7"
|
rand = "0.8"
|
||||||
askama = "0.10"
|
askama = "0.10"
|
||||||
csrf = "0.4"
|
csrf = "0.4"
|
||||||
|
|
|
@ -282,6 +282,6 @@ pub fn gen_name() -> String {
|
||||||
|
|
||||||
pub fn list_rand(list: &[String]) -> &String {
|
pub fn list_rand(list: &[String]) -> &String {
|
||||||
let mut rng = rand::thread_rng();
|
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]
|
&list[roll]
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ embed_migrations!("migrations/mysql");
|
||||||
|
|
||||||
type DbPool = r2d2::Pool<ConnectionManager<DbConn>>;
|
type DbPool = r2d2::Pool<ConnectionManager<DbConn>>;
|
||||||
|
|
||||||
#[actix_rt::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
/* std::env::set_var("RUST_LOG", "actix_web=debug");
|
/* std::env::set_var("RUST_LOG", "actix_web=debug");
|
||||||
env_logger::init();*/
|
env_logger::init();*/
|
||||||
|
|
Loading…
Reference in a new issue