mirror of
https://github.com/rust-unofficial/awesome-rust.git
synced 2025-01-29 22:01:07 +02:00
Upgrade almost all the deps
This commit is contained in:
parent
779d9b6aaf
commit
80e35f47c3
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
path: results/results.yaml
|
||||
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}
|
||||
restore-keys: |
|
||||
results-${{ hashFiles('Cargo.lock') }}
|
||||
results-${{ hashFiles('Cargo.lock') }}-
|
||||
results-
|
||||
- name: Build
|
||||
run: cargo run
|
||||
|
1762
Cargo.lock
generated
1762
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
15
Cargo.toml
15
Cargo.toml
@ -7,20 +7,19 @@ repository = "https://github.com/rust-unofficial/awesome-rust"
|
||||
edition = "2018"
|
||||
default-run = "awesome-rust"
|
||||
|
||||
# FIXME: locked down versions are a workaround for https://github.com/hyperium/hyper/issues/2191
|
||||
[dependencies]
|
||||
pulldown-cmark = "0.6"
|
||||
futures = "=0.3.5"
|
||||
reqwest = { version="=0.10.4", default_features=false, features=["rustls-tls", "trust-dns"] }
|
||||
tokio = {version = "=0.2.21", features = ["macros", "rt-core", "rt-threaded", "time"] }
|
||||
pulldown-cmark = "0.8"
|
||||
futures = "0.3"
|
||||
reqwest = { version="0.11", default_features=false, features=["rustls-tls"] }
|
||||
tokio = {version = "1", features = ["macros", "rt", "rt-multi-thread", "time"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_yaml = "0.8"
|
||||
hyper = "=0.13.5"
|
||||
hyper = "0.14"
|
||||
failure = "0.1"
|
||||
lazy_static = "1"
|
||||
env_logger = "0.7"
|
||||
env_logger = "0.8"
|
||||
log = "0.4"
|
||||
regex = "1"
|
||||
scraper = "0.11"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
chrono-humanize = "0.0.11"
|
||||
chrono-humanize = "0.2"
|
@ -82,7 +82,7 @@ impl MaxHandles {
|
||||
}
|
||||
|
||||
async fn get<'a>(&'a self) -> Handle<'a> {
|
||||
let permit = self.remaining.acquire().await;
|
||||
let permit = self.remaining.acquire().await.unwrap();
|
||||
return Handle { _permit: permit };
|
||||
}
|
||||
}
|
||||
@ -98,7 +98,7 @@ lazy_static! {
|
||||
.danger_accept_invalid_certs(true) // because some certs are out of date
|
||||
.user_agent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0") // so some sites (e.g. sciter.com) don't reject us
|
||||
.redirect(Policy::none())
|
||||
.max_idle_per_host(0)
|
||||
.pool_max_idle_per_host(0)
|
||||
.timeout(time::Duration::from_secs(20))
|
||||
.build().unwrap();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user