dependabot[bot]
e13354e8fa
Bump tempfile from 3.3.0 to 3.4.0 ( #834 )
2023-02-27 03:35:21 +00:00
dependabot[bot]
fd0166e31b
Bump jobslot from 0.2.8 to 0.2.9 ( #833 )
2023-02-27 03:29:16 +00:00
dependabot[bot]
809c8e9cad
Bump toml_edit from 0.19.3 to 0.19.4 ( #831 )
2023-02-23 13:29:33 +11:00
Jiahao XU
96ebcfd08f
Add new option --locked
that is passed through to cargo-install
( #830 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-22 22:27:17 +11:00
dependabot[bot]
0e055dbb7c
Bump async_zip from 0.0.9 to 0.0.12 ( #824 )
2023-02-22 08:47:47 +00:00
dependabot[bot]
8f50bab0d8
Bump compact_str from 0.6.1 to 0.7.0 ( #825 )
...
Bumps [compact_str](https://github.com/ParkMyCar/compact_str ) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/ParkMyCar/compact_str/releases )
- [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ParkMyCar/compact_str/commits )
---
updated-dependencies:
- dependency-name: compact_str
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-22 17:55:18 +11:00
Jiahao XU
a89c3735fd
Update transitive deps ( #821 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-20 23:16:40 +11:00
Jiahao XU
7bc4d4a5c6
Add opt --root-ceritificates
& env BINSTALL_HTTPS_ROOT_CERTS
( #820 )
...
for specifying root ceritificates used for https connnections.
And remove old environment variable `CARGO_HTTP_CAINFO`, `SSL_CERT_FILE`
and `SSL_CERT_PATH` to avoid accidentally setting them, especially in CI
env.
Also:
- Rm fn `binstalk_downloader::Certificate::from_env`
- Enable feature `env` of dep `clap` in `crates/bin`
- Add new dep `file-format` v0.14.0 to `crates/bin`
- Use `file-format` to determine pem/der file format when loading root certs
- Rm fn `binstalk_downloader::Certificate::open` and enum `binstalk_downloader::OpenCertificateError`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-20 20:48:33 +11:00
dependabot[bot]
467ba0d854
Bump cargo_toml from 0.15.1 to 0.15.2 ( #819 )
...
Bumps [cargo_toml](https://gitlab.com/crates.rs/cargo_toml ) from 0.15.1 to 0.15.2.
- [Release notes](https://gitlab.com/crates.rs/cargo_toml/tags )
- [Commits](https://gitlab.com/crates.rs/cargo_toml/compare/v0.15.1...v0.15.2 )
---
updated-dependencies:
- dependency-name: cargo_toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 14:33:12 +11:00
Jiahao XU
3f0107696b
Enable cross-lang-fat-lto on Linux ( #817 )
...
Fixed #806
- Add new feature flag `cross-lang-fat-lto` and enable it on release for linux
- Enable `-C linker-plugin-lto` for linux
- Only use `-Z gcc-ld=lld` on non-windows targets when `cargo-zigbuild` is not enabled
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-19 15:19:35 +11:00
Jiahao XU
e76a4dff62
Improve CI: All in cargo-zigbuild for linux targets ( #816 )
2023-02-18 13:41:17 +11:00
Jiahao XU
9923788f07
Fix CI: Only turn on feature pkg-config on linux and fix cross compilation ( #815 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-18 00:07:24 +13:00
Jiahao XU
61c992612c
Switch to cargo-zigbuild
for aarch64-unknown-linux-gnu
and x86_64-unknown-linux-musl
( #814 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-17 09:36:45 +13:00
dependabot[bot]
69a1c26951
Bump clap from 4.1.4 to 4.1.6 ( #813 )
2023-02-16 02:29:06 +00:00
Jiahao XU
2e118b3044
Optimize GhCrateMeta::find
: Cache url resolution result ( #810 )
...
So that we don't have to create multiple HEAD/GET http request to get
the final, redirected url.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-16 14:51:47 +13:00
Jiahao XU
a8b9ae6fda
Enable -Z share-generics
to reduce compilation time ( #807 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-16 14:47:37 +13:00
Jiahao XU
7b086bfcbc
Update SUPPORT.md on bin-dir
default ( #811 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-16 11:59:15 +13:00
Jiahao XU
93f15ea1c4
Ignore README.md and SUPPORT.md in workflow "ci" ( #812 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-16 11:58:16 +13:00
Jiahao XU
45ce841342
Adjust feature flags enabled on CI ( #809 )
...
Enable feature `pkg-config` and `log_release_max_level_debug` for debug
build and enable feature `static`, `trust-dns` and
`log_release_max_level_debug` for release build.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-16 11:57:58 +13:00
Jiahao XU
9c6ab5991e
Enable icf=safe & use rust-lld for targets other than win ( #805 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 20:24:17 +13:00
Jiahao XU
89b920a876
Inc default interval in --rate-limit
to 10ms ( #804 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 19:07:25 +13:00
Jiahao XU
9874dca454
Fix bin names in .crates.toml
on win ( #802 )
...
`bins::BinFile::new` does not include `binary_ext` in the
`BinFile::base_name`.
Also add regression e2e-test.
Fixed #801
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 17:24:50 +13:00
dependabot[bot]
30f7722131
Bump once_cell from 1.17.0 to 1.17.1 ( #803 )
2023-02-15 02:39:44 +00:00
Jiahao XU
1e49460ac7
Fix use of StreamReadable
: Ensure no empty Bytes
( #799 )
...
which would cause the `StreamReadable` to return eof even if the
underlying stream is still open and has not sent EOF yet.
Fixed #777
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 12:01:14 +11:00
Jiahao XU
9635e05d6c
Support adding root cert via env CARGO_HTTP_CAINFO
, SSL_CERT_{FILE, PATH}
( #774 )
...
* Support for custom root cert in `binstalk_downloader::remote::Client`
* Support adding root cert via env `CARGO_HTTP_CAINFO`, `SSL_CERT_{FILE, PATH}`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 11:33:59 +13:00
Jiahao XU
647f02bb59
Use cargo-zigbuild
for cross compilation ( #767 )
...
* Disable link arg `-lgcc` for musl builds when `cargo-zigbuild` is used
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-15 11:19:59 +13:00
Jiahao XU
3fffe39635
Document environment variable BINSTALL_LOG_LEVEL
( #798 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-13 06:26:16 +00:00
dependabot[bot]
28415f7927
Bump tokio-util from 0.7.6 to 0.7.7 ( #797 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.6...tokio-util-0.7.7 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 17:14:15 +11:00
Jiahao XU
7c15dd2052
Revert "Read log_level
from env CARGO_BINSTALL_LOG_LEVEL
if arg not present" ( #796 )
...
This reverts commit e84228ba01
.
2023-02-13 15:31:15 +11:00
Jiahao XU
04113e9dd9
Rm NOVERSION_FILENAMES
"{ name }{ archive-suffix }" ( #795 )
...
which does not contain `target`, hence it might report the binary being
available for any target we specified.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-13 13:44:24 +11:00
Jiahao XU
87686cb2f7
Feature: Better retry policy in binstalk-downloader
( #794 )
...
Fixed #779 #791
- Retry request on timeout
- Retry for `StatusCode::{REQUEST_TIMEOUT, GATEWAY_TIMEOUT}`
- Add `DEFAULT_RETRY_DURATION_FOR_RATE_LIMIT` for 503/429
if 503/429 does not give us a header or give us an invalid header on
when to retry, we would default to
`DEFAULT_RETRY_DURATION_FOR_RATE_LIMIT`.
- Fix `Client::get_redirected_final_url`: Retry using `GET` on status code 400..405 + 410
- Rename remote_exists => remote_gettable & support fallback to GET
if HEAD fails due to status code 400..405 + 410.
- Improve `Client::get_stream`: Include url & method in the err of the stream returned
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-13 13:43:48 +11:00
github-actions[bot]
1b2fb08bcb
release: cargo-binstall v0.20.1 ( #793 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-02-12 15:46:27 +11:00
Jiahao XU
015bd2e47a
Update transitive deps ( #768 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-12 15:33:28 +11:00
Jiahao XU
f46de3714a
Add step to relase-build to make sure it's runnable ( #792 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-12 14:48:28 +11:00
Jiahao XU
e84228ba01
Read log_level
from env CARGO_BINSTALL_LOG_LEVEL
if arg not present ( #790 )
...
* Enable feature "env" on dep clap in bin
* Read log_level from env `CARGO_BINSTALL_LOG_LEVEL` if arg not present
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-11 14:59:38 +11:00
github-actions[bot]
b408a1a9dd
release: cargo-binstall v0.20.0 ( #788 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-02-11 00:56:03 +11:00
github-actions[bot]
166bd05906
release: binstalk v0.8.0 ( #787 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-11 00:54:27 +11:00
github-actions[bot]
e03f9e0445
release: binstalk-downloader v0.3.3 ( #786 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-11 00:53:59 +11:00
github-actions[bot]
b8d9a4d649
release: binstalk-manifests v0.3.0 ( #785 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-02-10 23:55:41 +11:00
github-actions[bot]
1a4f98085c
release: binstalk-types v0.2.1 ( #784 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-02-10 23:06:23 +11:00
dependabot[bot]
c92f9ab115
Bump tokio-util from 0.7.4 to 0.7.5 ( #783 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.4...tokio-util-0.7.5 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 14:02:19 +11:00
figsoda
ff753f06f2
Make disabling static and rustls features possible ( #782 )
...
Default features were turned on for binstalk and the `static` and `pkg-config` features of cargo-binstall didn't do anything
2023-02-10 14:01:51 +11:00
Jiahao XU
d9dd611b9e
Improve fmt::Display
impl for all Error types ( #781 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-10 14:01:22 +11:00
dependabot[bot]
9d9b72c768
Bump toml_edit from 0.19.2 to 0.19.3 ( #773 )
...
Bumps [toml_edit](https://github.com/ordian/toml_edit ) from 0.19.2 to 0.19.3.
- [Release notes](https://github.com/ordian/toml_edit/releases )
- [Commits](https://github.com/ordian/toml_edit/compare/v0.19.2...v0.19.3 )
---
updated-dependencies:
- dependency-name: toml_edit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 13:46:01 +11:00
dependabot[bot]
c76014018b
Bump serde_json from 1.0.92 to 1.0.93 ( #778 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.92...v1.0.93 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 12:53:00 +11:00
dependabot[bot]
98c9f86192
Bump toml_edit from 0.19.1 to 0.19.2 ( #772 )
2023-02-07 02:19:42 +00:00
dependabot[bot]
1c863d829f
Bump serde_json from 1.0.91 to 1.0.92 ( #771 )
2023-02-06 02:49:33 +00:00
dependabot[bot]
cb56770fac
Bump cargo_toml from 0.14.0 to 0.15.1 ( #770 )
2023-02-06 02:40:03 +00:00
Jiahao XU
a13c01b769
Replace dep futures-util with helpers::FuturesResolver
( #765 )
...
futures-util has too many dependencies and it contains a lot of code of
which we only use `futures_util::stream::{FuturesUnordered, StreamExt}`.
We don't even need most of the functionalities in `FuturesUnordered` as
we just need the output of first future that either returns `Err(_)` or
`Ok(Some(_))`.
So we replace it with ou own homebrew solution (~80 loc) and it's easier
to use.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-05 16:26:25 +11:00
Jiahao XU
833684b095
Replace dep futures-util
with futures-lite
in binstalk-downloader ( #764 )
...
`futures-util` has too many dependencies and it contains a lot of code
of which we only use a tiny bit of them.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-04 16:05:03 +11:00