Update dependencies and remove unneeded dependencies

This commit is contained in:
Arne Beer 2020-08-23 17:34:35 +02:00
parent a422d53404
commit 1b48b9d17a
4 changed files with 675 additions and 886 deletions

View file

@ -8,8 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
- Non-existing tasks were displayed as successfully removed.
## [0.7.1] - 2020-07-24
- Remove unneeded dependencies and reduce compile time by 10% by [LovecraftianHorror](https://github.com/LovecraftianHorror)
- Remove futures-timers, effectively reducing compile time by 10+%.
- Update to comfy-table v1.1.0, reducing compile time by another 10+%.
### Added

1542
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -28,13 +28,13 @@ path = "shared/lib.rs"
[dependencies]
anyhow = "1"
async-std = { version = "1", features = ["attributes", "unstable"] }
async-std = { version = "1", features = ["attributes", "std"] }
dirs = "3"
chrono = { version = "^0.4", features = ["serde"] }
chrono-english = "^0.1.0"
rand = "^0.7"
strum = "^0.18"
strum_macros = "^0.18"
strum = "^0.19"
strum_macros = "^0.19"
handlebars = "3"
bytes = "^0.5"
@ -56,7 +56,7 @@ tempfile = "^3"
[target.'cfg(not(windows))'.dependencies]
users = "^0.10"
nix = "^0.17"
nix = "^0.18"
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
procfs = "^0.8"

View file

@ -3,9 +3,8 @@ use ::std::io::Read;
use ::std::time::Duration;
use ::anyhow::Result;
use ::async_std::future;
use ::async_std::net::TcpStream;
use ::async_std::prelude::*;
use ::async_std::task::sleep;
use ::pueue::log::*;
use ::pueue::message::*;
@ -94,7 +93,6 @@ pub async fn handle_follow(
// Send the new chunk and wait for 1 second.
let response = Message::Stream(text);
send_message(response, socket).await?;
let wait = future::ready(1).delay(Duration::from_millis(1000));
wait.await;
sleep(Duration::from_millis(1000)).await;
}
}