Bump dependencies

This commit is contained in:
Jordan Doyle 2022-03-14 22:45:27 +00:00
parent c686cba0c4
commit e8c3d1a5fc
No known key found for this signature in database
GPG Key ID: 1EA6BAE6F66DC49A
4 changed files with 1246 additions and 1277 deletions

2503
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,18 +15,17 @@ owning_ref = "0.4"
linked-hash-map = "0.5"
lazy_static = "1.4"
serde = { version = "1.0", features = ["derive"] }
rand = { version = "0.7", features = ["nightly"] }
rand = { version = "0.8" }
gpw = "0.1"
actix = "0.10.0-alpha.2"
actix-web = "3.0.0-alpha.1"
actix-rt = "1.0"
actix = "0.12"
actix-web = "3.3"
htmlescape = "0.3"
askama = "0.9"
syntect = "4.1"
askama = "0.11"
syntect = "4.6"
tokio = { version = "0.2", features = ["sync"] }
tokio = { version = "1.15", features = ["sync"] }
futures = "0.3"
[profile.release]

View File

@ -41,7 +41,8 @@ pub fn generate_id() -> String {
thread_rng()
.sample_iter(&Alphanumeric)
.take(6)
.collect::<String>()
.map(char::from)
.collect()
})
}

View File

@ -33,7 +33,7 @@ pub struct BinArgs {
max_paste_size: usize,
}
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
if std::env::var_os("RUST_LOG").is_none() {
std::env::set_var("RUST_LOG", "INFO");
@ -162,4 +162,4 @@ fn render_template<T: Template>(req: &HttpRequest, template: T) -> Result<HttpRe
Err(InternalServerError(Box::new(e)).into())
}
}
}
}