mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-05 10:26:36 +00:00
Add --maximum-resolution-timeout
(#1862)
* Add --maximum-resolution-timeout Fixed #1823 * Display default value for `--maximum-resolution-timeout` in help
This commit is contained in:
parent
de55e465f5
commit
52f2db4f57
5 changed files with 76 additions and 48 deletions
crates/bin/src
|
@ -2,6 +2,7 @@ use std::{
|
|||
env, fs,
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use binstalk::{
|
||||
|
@ -200,6 +201,10 @@ pub fn install_crates(
|
|||
SignaturePolicy::IfPresent
|
||||
},
|
||||
disable_telemetry: args.disable_telemetry,
|
||||
|
||||
maximum_resolution_timeout: Duration::from_secs(
|
||||
args.maximum_resolution_timeout.get().into(),
|
||||
),
|
||||
});
|
||||
|
||||
// Destruct args before any async function to reduce size of the future
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue