mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 12:40:04 +00:00
Run Manifest
parsing in block_in_place
mode
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
60caa9ee17
commit
e18ac6e117
4 changed files with 25 additions and 27 deletions
|
@ -130,16 +130,16 @@ pub async fn download_tar_based_and_visit<V: TarEntriesVisitor + Debug + Send +
|
|||
url: Url,
|
||||
fmt: TarBasedFmt,
|
||||
visitor: V,
|
||||
) -> Result<V, BinstallError> {
|
||||
) -> Result<V::Target, BinstallError> {
|
||||
let stream = create_request(url).await?;
|
||||
|
||||
debug!("Downloading and extracting then in-memory processing");
|
||||
|
||||
let visitor = extract_tar_based_stream_and_visit(stream, fmt, visitor).await?;
|
||||
let ret = extract_tar_based_stream_and_visit(stream, fmt, visitor).await?;
|
||||
|
||||
debug!("Download, extraction and in-memory procession OK");
|
||||
|
||||
Ok(visitor)
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
/// Fetch install path from environment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue