Jiahao XU
962e79a51c
Rm unused import in sparse_registry.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 13:37:14 +10:00
Jiahao XU
6b64129185
Fix typing in Registry::crate_source
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 13:37:00 +10:00
Jiahao XU
ee3af57f4d
Fix SparseRegistery::url
return type
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 13:30:12 +10:00
Jiahao XU
4c1d6b45fe
Fix GitRegistry::url
ret type
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 13:29:45 +10:00
Jiahao XU
9298511d05
Fix Registery::crate_source
...
Match sparse/git crates.io registry to standardrised `CrateSource::cratesio_registry()`.
Also optimize it to avoid unnecessary `.to_string()` and `Url::parse` for sparse registry.
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 13:29:17 +10:00
Jiahao XU
31a88f4124
cargo fmt crate_version_source.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 01:06:37 +10:00
Jiahao XU
563daa2bdd
Fix lifetime of CratesToml<'::add_crate
API
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 01:00:17 +10:00
Jiahao XU
cf3e7f4113
Fix lifetime of CrateToml::add_crate
API
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 00:50:12 +10:00
Jiahao XU
01d5dbf234
Fix crate_version_source.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 00:48:25 +10:00
Jiahao XU
8f13d324c4
Fix <Source as Display>::fmt
impl for Source::Sprase
...
Add `/` to the end of the url if it doesn't have one
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 00:44:19 +10:00
Jiahao XU
2d7feab356
Refactor: Extract new fn CratesToml::add_crate
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 00:34:24 +10:00
Jiahao XU
742ab8c1e0
Fix fmt in cargo_crates_v1.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 01:10:01 +10:00
Jiahao XU
769ba9276b
Fix fmt in binstalk-registry/src/lib.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 00:43:32 +10:00
Jiahao XU
f5a4b70be4
Fix fmt in cargo_crates_v1.rs
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 00:42:09 +10:00
Jiahao XU
c929883e47
Fix unused variable in Registry::crate_source
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 00:41:06 +10:00
Jiahao XU
ce87169b26
Fix Registry::url
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 00:34:57 +10:00
Jiahao XU
a356179804
Fix typing in cargo_crates_v1.rs and optimize append_to_file
...
Use `Vec::reserve_exact ` in `append_to_file` to avoid unnecessary allocation
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-04 00:17:18 +10:00
Jiahao XU
a2df287683
Optimize CratesToml::append_to_file
...
Bulkify remove
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 01:24:37 +10:00
Jiahao XU
68b9519527
Add support for Source::Sparse
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 01:11:43 +10:00
Jiahao XU
fc32a1ca61
Use `Registry::crate_siouy
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 01:09:25 +10:00
Jiahao XU
b909001d4b
Add Registry::crate_source
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 01:08:03 +10:00
Jiahao XU
85ae0e7cee
Add SourceType::Sparse
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 00:58:01 +10:00
Jiahao XU
c83aa46c3c
Add either v1.15.0 to binstalk-registry
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-03 00:51:45 +10:00
github-actions[bot]
e8c9cc3599
release: cargo-binstall v1.12.6 ( #2174 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-05-31 06:15:47 +00:00
github-actions[bot]
0aa114bfe0
chore: release ( #2164 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-31 03:49:59 +00:00
Jiahao XU
a333bb922d
deps: Upgrade reqwest to 0.12.17 ( #2168 )
...
* Upgrade reqwest to 0.12.18
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Enable bbr and early data for http3
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* fix dep reqwest 0.12.18 does not exist
use reqwest 0.12.17
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix builder
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix setting tls early data
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add reqwest_unstable as checked-cfg
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-05-28 14:59:21 +00:00
github-actions[bot]
5cbf019d8c
release: cargo-binstall v1.12.5 ( #2156 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-05-16 15:46:21 +00:00
github-actions[bot]
205aaa5a4f
chore: release ( #2155 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-16 15:14:11 +00:00
github-actions[bot]
8d438736eb
dep: Upgrade transitive dependencies ( #2154 )
...
* dep: Upgrade transitive dependencies
* Simplify download.rs using io::Error::other
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix utils.rs in io::Error::other
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix typo in download.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Use io::Error::other in errors.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Use TempDir::keep instead of deprecated into_path in entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Use io::Error::other in gh_token.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fmt gh_token.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fmt utils.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-05-16 13:29:39 +00:00
dependabot[bot]
277269fc8e
build(deps): bump file-format from 0.26.0 to 0.27.0 in the deps group ( #2149 )
...
Bumps the deps group with 1 update: [file-format](https://github.com/mmalecot/file-format ).
Updates `file-format` from 0.26.0 to 0.27.0
- [Release notes](https://github.com/mmalecot/file-format/releases )
- [Changelog](https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mmalecot/file-format/compare/v0.26.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: file-format
dependency-version: 0.27.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-10 01:49:27 +00:00
github-actions[bot]
13f9d60d53
release: cargo-binstall v1.12.4 ( #2146 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-05-07 12:19:04 +00:00
github-actions[bot]
f95e90d82c
chore: release ( #2123 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-07 11:42:02 +00:00
Jiahao XU
1394d1bbda
Fix glibc detection on ubuntu 24.02 ( #2143 )
...
* Fix glibc detection on ubuntu 24.02
On ubuntu 24.02, glibc are installed in:
```
/usr/lib/aarch64-linux-gnu/libc.so.6
/usr/lib/aarch64-linux-gnu/libc.so
```
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add tests for ubuntu-24.02-arm
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix CI: Add detect-targets-ubuntu-arm-test
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Bump ubuntu-20.04 to ubuntu-22.04
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update outdated comment in detect-targets-ubuntu-arm-test in ci.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-05-07 08:43:36 +00:00
github-actions[bot]
63aaa5c193
release: cargo-binstall v1.12.3 ( #2114 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-04-06 04:47:09 +00:00
github-actions[bot]
e986d53f05
chore: release ( #2106 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-05 11:02:32 +00:00
Jiahao XU
b49bcb7a16
Fix clippy lints ( #2111 )
...
* Fix indentation of docs in extracted_files.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Optimize parse_header_retry_after
Use next_back instead of last
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix doc indentation in cargo_config.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-04-04 14:14:17 +00:00
github-actions[bot]
b9bf440070
release: cargo-binstall v1.12.2 ( #2101 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-03-20 14:03:34 +00:00
github-actions[bot]
08cf94c5bf
chore: release ( #2095 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-19 15:24:05 +00:00
Jiahao XU
88fd813c05
Use zlib-rs for gitoxide and avoid pulling in zlib-ng ( #2099 )
...
Since we already use zlib-rs there is no point in pulling in zlib-ng
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-19 14:25:08 +00:00
Jiahao XU
028b24de4d
Fix clippy warnings for detect-targets and binstalk-downloader ( #2098 )
...
binstalk-downloader clippy warning is specific to windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-19 14:19:43 +00:00
dependabot[bot]
bb0d6c1f9c
build(deps): bump windows from 0.60.0 to 0.61.1 in the deps group across 1 directory ( #2097 )
...
build(deps): bump windows in the deps group across 1 directory
Bumps the deps group with 1 update in the / directory: [windows](https://github.com/microsoft/windows-rs ).
Updates `windows` from 0.60.0 to 0.61.1
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-19 14:10:25 +00:00
Jiahao XU
ce998d1af4
dep: Bump hickory-resolver to 0.25.1 ( #2096 )
...
* dep: Bump hickory-resolver to 0.25.0
Fix #2089
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix use of hickory-resolver features
And bump hickory-resolver to 0.25.1
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update lockfile and bump transitive dependencies
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix use of hickory-dns updated API
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-19 13:33:44 +00:00
elsirion
d8ecdcaeec
fix: actually check if lock was acquired ( #2091 )
2025-03-19 09:41:51 +00:00
github-actions[bot]
89e5015914
release: cargo-binstall v1.12.1 ( #2085 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-03-15 06:13:23 +00:00
github-actions[bot]
e2ef5918cf
chore: release ( #2080 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-15 03:38:12 +00:00
dependabot[bot]
120bca5a45
build(deps): bump the deps group with 2 updates ( #2084 )
...
Bumps the deps group with 2 updates: [async-trait](https://github.com/dtolnay/async-trait ) and [cargo_toml](https://gitlab.com/lib.rs/cargo_toml ).
Updates `async-trait` from 0.1.87 to 0.1.88
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.87...0.1.88 )
Updates `cargo_toml` from 0.21.0 to 0.22.1
- [Commits](https://gitlab.com/lib.rs/cargo_toml/commits/v0.22.1 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: cargo_toml
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-15 01:25:01 +00:00
dependabot[bot]
ed23038614
build(deps): bump tokio from 1.43.0 to 1.44.0 in the deps group ( #2079 )
...
Bumps the deps group with 1 update: [tokio](https://github.com/tokio-rs/tokio ).
Updates `tokio` from 1.43.0 to 1.44.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.44.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-08 02:18:01 +00:00
github-actions[bot]
acd08f1845
release: cargo-binstall v1.12.0 ( #2078 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2025-03-07 14:58:55 +00:00
github-actions[bot]
b243c176fe
chore: release ( #2073 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-07 13:49:46 +00:00
Jiahao XU
268efdf6e6
feat: Use CARGO_BUILD_TARGET
as fallback for --target
( #2075 )
...
* feat: Use `CARGO_BUILD_TARGET` as fallback for `--target`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix e2e-tests: Unset CARGO_BUILD_TARGET before running e2e-tests
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-07 13:18:15 +00:00