mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
feat: Read --rate-limit
from env BINSTALL_RATE_LIMIT
as a fallback (#1201)
feat: Scrap `--rate-limit` from env `BINSTALL_RATE_LIMIT` as a fallback and set `BINSTALL_RATE_LIMIT` to `100/1` on CI. Fixed #1196 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
963e9e97ad
commit
ad58573143
2 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,7 @@ pub struct Args {
|
||||||
/// allows 2 requests per 6ms.
|
/// allows 2 requests per 6ms.
|
||||||
///
|
///
|
||||||
/// Both duration and request count must not be 0.
|
/// Both duration and request count must not be 0.
|
||||||
#[clap(help_heading = "Overrides", long, default_value_t = RateLimit::default())]
|
#[clap(help_heading = "Overrides", long, default_value_t = RateLimit::default(), env = "BINSTALL_RATE_LIMIT")]
|
||||||
pub rate_limit: RateLimit,
|
pub rate_limit: RateLimit,
|
||||||
|
|
||||||
/// Specify the strategies to be used,
|
/// Specify the strategies to be used,
|
||||||
|
|
1
justfile
1
justfile
|
@ -12,6 +12,7 @@ use-auditable := env_var_or_default("JUST_USE_AUDITABLE", "")
|
||||||
timings := env_var_or_default("JUST_TIMINGS", "")
|
timings := env_var_or_default("JUST_TIMINGS", "")
|
||||||
|
|
||||||
export BINSTALL_LOG_LEVEL := if env_var_or_default("RUNNER_DEBUG", "0") == "1" { "debug" } else { "info" }
|
export BINSTALL_LOG_LEVEL := if env_var_or_default("RUNNER_DEBUG", "0") == "1" { "debug" } else { "info" }
|
||||||
|
export BINSTALL_RATE_LIMIT := "100/1"
|
||||||
|
|
||||||
cargo := if use-cargo-zigbuild != "" { "cargo-zigbuild" } else if use-cross != "" { "cross" } else { "cargo" }
|
cargo := if use-cargo-zigbuild != "" { "cargo-zigbuild" } else if use-cross != "" { "cross" } else { "cargo" }
|
||||||
export CARGO := cargo
|
export CARGO := cargo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue