Commit graph

958 commits

Author SHA1 Message Date
github-actions[bot]
293f2378d6
chore: release (#2183)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-06 14:52:08 +00:00
Jiahao XU
4ec96064b6
Optimize CratesToml (#2186)
* Optimize CratesToml

Use Box<str> instead of String

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix CrateToml::add_crate

optimize apoend_to_file, drop crate_names before reserving

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Cargo fmt cargo_crates_v1.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 10:39:55 +00:00
Jiahao XU
28525359d3
Ensure cargo-binstall build.rs always join the thread (#2185)
Make sure the build script waits for it to finish before exiting the whole process

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 07:36:07 +00:00
Jiahao XU
25a52038ef
fix updating of installed crates manifest on custom sparse registry (#2178)
* Add either v1.15.0 to binstalk-registry

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add `SourceType::Sparse`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add `Registry::crate_source`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Use `Registry::crate_siouy

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add support for `Source::Sparse`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Optimize `CratesToml::append_to_file`

Bulkify remove

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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>

* Fix Registry::url

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix unused variable in `Registry::crate_source`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fmt in cargo_crates_v1.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fmt in binstalk-registry/src/lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fmt in cargo_crates_v1.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Refactor: Extract new fn CratesToml::add_crate

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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>

* Fix crate_version_source.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix lifetime of `CrateToml::add_crate` API

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix lifetime of `CratesToml<'::add_crate` API

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* cargo fmt crate_version_source.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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>

* Fix `GitRegistry::url` ret type

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix `SparseRegistery::url` return type

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix typing in `Registry::crate_source`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Rm unused import in sparse_registry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Rm unused import in git_registry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* cargo fmt binstalk-registry/src/lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Rm unused dep either from binstalk-registry

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-06-06 04:13:05 +00: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
Jiahao XU
92973c1392
Fix detect-targets musl fallback for android and alpine (#2076)
Android does not have `-unknown-` in target and alpine uses
`-alpine-` instead of `-unknown-`, so the musl fallback must be
taken special care when generating

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-06 19:56:49 +00:00
Jiahao XU
a8daf8eb3b
Use bzip2/libbz2-rs-sys (#2071)
Also upgrade rc-zip-sync so that it uses bzip the same major version
v0.5.2 as our crate, so that it doesn't pull in c bzip and rust bzip
at the same time.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-04 13:20:35 +00:00
dependabot[bot]
d9da8aaba4
build(deps): bump the deps group with 3 updates (#2072)
Some checks failed
Release-plz / Release-plz (push) Has been cancelled
* build(deps): bump the deps group with 3 updates

Bumps the deps group with 3 updates: [compact_str](https://github.com/ParkMyCar/compact_str), [bzip2](https://github.com/trifectatechfoundation/bzip2-rs) and [fs4](https://github.com/al8n/fs4-rs).


Updates `compact_str` from 0.8.1 to 0.9.0
- [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ParkMyCar/compact_str/compare/v0.8.1...v0.9.0)

Updates `bzip2` from 0.5.1 to 0.5.2
- [Release notes](https://github.com/trifectatechfoundation/bzip2-rs/releases)
- [Commits](https://github.com/trifectatechfoundation/bzip2-rs/compare/v0.5.1...v0.5.2)

Updates `fs4` from 0.12.0 to 0.13.0
- [Release notes](https://github.com/al8n/fs4-rs/releases)
- [Changelog](https://github.com/al8n/fs4-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/al8n/fs4-rs/commits)

---
updated-dependencies:
- dependency-name: compact_str
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: bzip2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: fs4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix use of fs4::fs_std::FileExt::try_lock*

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-03-01 07:11:06 +00:00
github-actions[bot]
a799bb428c
release: cargo-binstall v1.11.2 (#2069)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2025-02-28 13:01:26 +00:00
github-actions[bot]
708a489062
chore: release (#2067)
Some checks are pending
Release-plz / Release-plz (push) Waiting to run
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-28 11:55:33 +00:00
Jiahao XU
712ad730a6
Use flate2/zlib-rs for dev/release build (#2068)
* Add feature zlib-rs to binstalk-downloader

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add feature zlib-rs to binstalk

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add feature zlib-rs to cargo-binstall

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Enable zlib-rs for CI build pipeline

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-28 09:08:34 +00:00
github-actions[bot]
6010abb1da
release: cargo-binstall v1.11.1 (#2065)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2025-02-23 01:37:27 +00:00
github-actions[bot]
f71ab715ab
chore: release (#2061)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-22 15:38:19 +00:00
Jiahao XU
8ee6c537e4
Log when FileLock::drop fails to unlock file (#2064)
* Add optional dependency tracing to fs-lock

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add optional logging to FileLock::drop

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Enable fs-lock/tracing in binstalk-manifest

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add FileLock::set_file_path

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update create_if_not_exist to return FileLock on successs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update create_if_not_exist usage in mod binstall_crates_v1

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Simplify create_if_not_exist

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Refactor mod crates_manifests to use create_if_not_exist

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Set file path for FileLock

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Set file path for file lock in mod cargo_config

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fs-lock impl

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Import Path in fs-lock lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fs-lock lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fs-lock lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix typo in crates_manifests.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix calling create_if_not_exist in crates_manifests.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fox fmt crates_manifests.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fmt in lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-22 14:33:36 +00:00
dependabot[bot]
86a7e90175
build(deps): bump windows from 0.59.0 to 0.60.0 in the deps group across 1 directory (#2063)
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.59.0 to 0.60.0
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.59.0...0.60.0)

---
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-02-22 11:18:19 +00:00
Jiahao XU
395a586265
Fix fs-lock error on nightly (#2059)
* Fix fs-lock error on nightly

Since File::*lock* API is stablised on 1.87, it overrides fs4::fs_std::FileExt

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix other fs-lock method

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix unit-tests when no test is run

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-22 10:21:02 +00:00
github-actions[bot]
ac0e34cc77
release: cargo-binstall v1.11.0 (#2053)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2025-02-15 09:20:04 +00:00
github-actions[bot]
cdc492db98
chore: release (#2051)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-15 08:22:41 +00:00
Josh McKinney
95a9818565
feat: add color and wrapping to help text (#2052)
* feat: add color to help text

Uses the same coloring that cargo uses to make it easier to skim read the help

* fix: wrap help text

* fix: shorten value placeholders in help text

* fix: docs for override help text
2025-02-15 07:40:19 +00:00
github-actions[bot]
c175bb02c4
release: cargo-binstall v1.10.23 (#2048)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2025-02-12 00:21:51 +00:00
github-actions[bot]
8a18d5f024
chore: release (#2040)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-11 16:10:36 +00:00
dependabot[bot]
04a243ff8f
build(deps): bump the deps group with 2 updates (#2044)
Bumps the deps group with 2 updates: [strum](https://github.com/Peternator7/strum) and [strum_macros](https://github.com/Peternator7/strum).


Updates `strum` from 0.26.3 to 0.27.0
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/compare/v0.26.3...v0.27.0)

Updates `strum_macros` from 0.26.4 to 0.27.0
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits/v0.27.0)

---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: strum_macros
  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-02-11 11:03:28 +00:00
Jiahao XU
9b8ba9902d
Upgrade hickory-resolver to 0.25.0-alpha.5 (#2038)
* Upgrade hickory-resolver to 0.25.0-alpha.5

Update dependencies

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix compilation for hickory-resolver

Cleanup use of removed feature

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix resolver.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Pin hickory-resolver to avoid breakage

Cargo considers 0.25.0-alpha.* to be compatible while they can contain breaking changes between alpha versions.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-11 09:54:04 +00:00
github-actions[bot]
a3f88b5cbf
chore: release (#2031)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-04 21:30:08 +00:00