mirror of https://github.com/w4/bin.git
Bump dependencies
This commit is contained in:
parent
c686cba0c4
commit
e8c3d1a5fc
File diff suppressed because it is too large
Load Diff
13
Cargo.toml
13
Cargo.toml
|
@ -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]
|
||||
|
|
|
@ -41,7 +41,8 @@ pub fn generate_id() -> String {
|
|||
thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(6)
|
||||
.collect::<String>()
|
||||
.map(char::from)
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue