mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-16 08:50:02 +00:00
Remove dep futures-lite
from binstalk-downloader
(#1259)
I planned to replace `futures-util` with `futures-lite`, but it turns out that `reqwest` actually depends on `futures-util`, so there is no point removing it and introduce yet another dependency. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
2fbcf188a7
commit
ac012bdcb2
9 changed files with 8 additions and 23 deletions
|
@ -8,7 +8,7 @@ use std::{
|
|||
|
||||
use async_zip::base::read::stream::ZipFileReader;
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use futures_lite::stream::Stream;
|
||||
use futures_util::Stream;
|
||||
use tokio::sync::mpsc;
|
||||
use tokio_util::io::StreamReader;
|
||||
use tracing::debug;
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::{borrow::Cow, fmt::Debug, io, path::Path, pin::Pin};
|
|||
|
||||
use async_compression::tokio::bufread;
|
||||
use bytes::Bytes;
|
||||
use futures_lite::stream::{Stream, StreamExt};
|
||||
use futures_util::{Stream, StreamExt};
|
||||
use tokio::io::{copy, sink, AsyncRead};
|
||||
use tokio_tar::{Archive, Entry, EntryType};
|
||||
use tokio_util::io::StreamReader;
|
||||
|
|
|
@ -9,7 +9,7 @@ use async_zip::{
|
|||
ZipString,
|
||||
};
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use futures_lite::future::try_zip as try_join;
|
||||
use futures_util::future::try_join;
|
||||
use futures_util::io::Take;
|
||||
use thiserror::Error as ThisError;
|
||||
use tokio::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue