dependabot[bot]
da1be0ab45
build(deps): update gix requirement from 0.48.0 to 0.49.1 in /crates/binstalk ( #1220 )
...
build(deps): update gix requirement in /crates/binstalk
Updates the requirements on [gix](https://github.com/Byron/gitoxide ) to permit the latest version.
- [Release notes](https://github.com/Byron/gitoxide/releases )
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.48.0...gix-v0.49.1 )
---
updated-dependencies:
- dependency-name: gix
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 02:25:47 +00:00
github-actions[bot]
3d6a93fe8e
release: cargo-binstall v1.1.1 ( #1219 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-19 05:07:52 +00:00
github-actions[bot]
494ff844e6
release: binstalk-manifests v0.8.0 ( #1218 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-19 03:46:01 +00:00
Jiahao XU
47f79a9660
Fix loading .cargo/config.toml
( #1217 )
...
Fixed #1216
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-19 02:15:57 +00:00
github-actions[bot]
07bc44e059
release: cargo-binstall v1.1.0 ( #1215 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-18 14:13:32 +00:00
Jiahao XU
83fdd053bf
Fix release-pr.yml
: Do not check-semver
for cargo-binstall release ( #1214 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-18 12:56:33 +00:00
github-actions[bot]
61fdf16d7e
release: binstalk v0.14.0 ( #1213 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-18 11:30:43 +00:00
github-actions[bot]
65d01f3199
release: binstalk-downloader v0.6.1 ( #1212 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-18 09:42:38 +00:00
github-actions[bot]
8fa5e51ca0
release: binstalk-manifests v0.7.0 ( #1211 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-07-18 09:36:12 +00:00
github-actions[bot]
c842defd57
dep: Upgrade transitive dependencies ( #1210 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-07-18 07:08:33 +00:00
Jiahao XU
0c5b7f115d
feat: Support --verbose --version
/-vV
( #1182 )
...
that provides more information:
```
cargo-binstall: 1.0.0
build-date: 2023-07-18
build-target: aarch64-apple-darwin
build-features: default,fancy_no_backtrace,git,rustls,static,trust_dns,zstd_thin
build-commit-hash: 39d8cfc07f2253080ce997e620406c2994dced25
build-commit-date: 2023-07-18
rustc-version: 1.71.0
rustc-commit-hash: 8ede3aae28fe6e4d52b38157d7bfe0d3bceef225
rustc-llvm-version: 16.0
```
Fixed #627
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-18 05:22:41 +00:00
Jiahao XU
c11261b88f
CI: Relax rate limit to 30/1
( #1209 )
...
`100/1` slows CI down to a snail when getting rate limited by GitHub.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-17 20:19:50 +00:00
Sebastian Thiel
5acfda9379
avoid worktree checkouts ( #1207 )
...
* perform a bare git cloen to avoid worktree checkouts
This will be way faster on windows
* feat: use the git repository directly to obtain crate information
* Apply code review changes
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl `fmt::Display` for `helpers: :GitUrl`
and also refactor implementation of `git::Repository::{shallow_clone,
shallow_clone_bare}`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lint warnings
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix typo
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-17 15:46:12 +00:00
github-actions[bot]
b08849b7ce
dep: Upgrade transitive dependencies ( #1206 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-07-17 09:22:25 +00:00
github-actions[bot]
ef4e6d7cbf
dep: Upgrade transitive dependencies ( #1202 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-07-17 17:02:13 +10:00
dependabot[bot]
9af17de9c3
build(deps): update file-format requirement from 0.17.0 to 0.18.0 in /crates/bin ( #1205 )
...
build(deps): update file-format requirement in /crates/bin
Updates the requirements on [file-format](https://github.com/mmalecot/file-format ) to permit the latest version.
- [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.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17 14:51:46 +10:00
Jiahao XU
ad58573143
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>
2023-07-17 13:07:15 +10:00
Jiahao XU
963e9e97ad
Use reflink_copy::reflink_or_copy
in fs::atomic_install*
( #1197 )
...
to speedup copy operation `atomic_install*`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-17 11:56:10 +10:00
Jiahao XU
b3b682a1af
Optimize profile.dev
: Set codege-units
to 32 ( #1199 )
...
Splitting too many codege-units would actually takes longer to compile
due to overhead of parallelism in backend.
Also, our CI does not have that many CPU cores to take advantages of.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-17 00:48:12 +10:00
Jiahao XU
9746ce9ca3
Set opt-level for {binstall, tokio}-tar
to "z"
( #1203 )
...
Trying to fix #1196
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-17 00:47:40 +10:00
Jiahao XU
d1fe5c7155
Fix clippy warning in binstalk_downloader
( #1204 )
...
Replace use of `PhantomData::default()` in `src/download.rs` with
`PhantomData` since it is a unit struct.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-16 13:50:04 +10:00
Jiahao XU
65670224b8
Simplify args::parse
using clap::Arg::conflicts_with
( #1198 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-11 13:20:51 +00:00
Jiahao XU
9d4694219b
speedup git shallow cloning: Enable gix/max-performance
( #1186 )
...
for targets:
- x86_64-apple-darwin
- aarch64-apple-darwin
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
which will use `zlib-ng` to speedup decompression and use assembly
version for sha1 checksum calculation on supported CPU.
Also enable feature `zlib-ng` on windows and
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-10 06:18:15 +00:00
Jiahao XU
7dea40a99a
Support --registry
and more options from .cargo/config.toml
( #1195 )
...
Fixed #885
Now we can take advantage of new argument `--registry` and
env overrides:
- `CARGO_REGISTRIES_DEFAULT` if `--registry` is not specified
- `CARGO_REGISTRIES_{registry_name}_INDEX` for the registry index url
We can also read from `.cargo/config.toml` for:
- default registry and registries configurations
- additional CA bundle `http.cainfo`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-10 03:37:41 +00:00
Jiahao XU
d280e122ca
Speedup prebuilt binary ( #1188 )
...
After the merge of #1184 , CI now takes 11m just to shallow clone
crates.io git index, which means that our user using alternative git
index would also be quite slow.
This commit speeds it up by building all dependencies with `-O3` in dev
and release build, in release build we build everything with `-O3`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-09 12:06:04 +00:00
Jiahao XU
c4b6921314
fix binstalk_downloader::GhApiClient
json deser error ( #1193 )
...
When installing `cargo-expand` v1.0.59, I got an error message:
```
Failed to parse http response body as Json: invalid type: null, expected a string at line
1 column 90
```
This is because `GraphQLPageInfo::end_cursor` can actually be `null`, so
I change its type to `Option<CompactString>`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-09 10:39:18 +00:00
Jiahao XU
0813e80438
Fix GPL-3.0 license identifier ( #1192 )
...
Fixed #1189
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-07-07 07:24:05 +00:00
github-actions[bot]
f2f0cd2de6
dep: Upgrade transitive dependencies ( #1191 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-07-07 04:16:44 +00:00
Jiahao XU
01a87ac606
feat: Impl support for alternative registries ( #1184 )
...
Fixed #1168
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-30 03:52:40 +00:00
github-actions[bot]
d4ffc68129
dep: Upgrade transitive dependencies ( #1187 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-06-30 03:52:19 +00:00
dependabot[bot]
59c0d5dea9
build(deps): update gix requirement from 0.47.0 to 0.48.0 in /crates/binstalk ( #1185 )
...
build(deps): update gix requirement in /crates/binstalk
Updates the requirements on [gix](https://github.com/Byron/gitoxide ) to permit the latest version.
- [Release notes](https://github.com/Byron/gitoxide/releases )
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.47.0...gix-v0.48.0 )
---
updated-dependencies:
- dependency-name: gix
dependency-type: direct:production
...
- Also updated other dependencies to latest compatible version.
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 12:52:48 +00:00
Jiahao XU
f0c3d1e724
fix release-build.yml
: Fix cache key for Swatinem/rust-cache@v2
( #1180 )
...
Set `CARGO_*` env before caching is done.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-27 06:25:57 +00:00
Jiahao XU
3d81c147be
fix release-build.yml
: Explicitly set release_name to the same as tag ( #1181 )
...
Fixed #699
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-27 06:25:38 +00:00
github-actions[bot]
f231f93976
release: cargo-binstall v1.0.0 ( #1179 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-27 03:42:37 +00:00
github-actions[bot]
d2e4fef060
release: binstalk v0.13.0 ( #1178 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-27 01:52:53 +00:00
github-actions[bot]
583860fbc6
release: binstalk-downloader v0.6.0 ( #1177 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 14:17:53 +00:00
github-actions[bot]
beb826e6ae
release: binstalk-manifests v0.6.0 ( #1176 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 13:44:34 +00:00
github-actions[bot]
c816f33ac0
release: binstalk-types v0.5.0 ( #1175 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 12:27:56 +00:00
github-actions[bot]
ff7867a6a6
release: detect-targets v0.1.8 ( #1174 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 10:23:31 +00:00
github-actions[bot]
c917f94f28
release: normalize-path v0.2.1 ( #1173 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 08:22:39 +00:00
github-actions[bot]
88c7df6ea0
release: leon v2.0.1 ( #1172 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 05:10:30 +00:00
github-actions[bot]
887f7593d3
dep: Upgrade transitive dependencies ( #1171 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-06-26 03:33:28 +00:00
Jiahao XU
2f890cc344
ci: Check package publish in release-pr.yml
( #1170 )
...
before creating the release PR.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-26 01:42:35 +00:00
github-actions[bot]
cd0939dcf5
dep: Upgrade transitive dependencies ( #1169 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-06-25 14:01:09 +00:00
Jiahao XU
4ddd860c01
ci: Verify before publishing ( #1167 )
...
Run `cargo-publish` without `--no-verify` to verify the publish is valid
and does not depend on unpublished crates in job tag of workflow
`release.yml`, which could be caused by incorrect merge order.
Also enabled `check-semver` to `cargo-bins/release-pr@v2` and install
`cargo-semver-checks` using `taiki-e/install-action@v2` in
job make-release-pr of workflow `release-pr.yml`, since
`release-pr` would try to use `cargo-binstall` for installing
`cargo-semver-checks` used in `check-semver`, but we did not explicitly
require `taiki-e/install-actions@v2` to install `cargo-binstall`, so
`release-pr` could fallback to `cargo-install` which is just too slow.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-24 15:23:15 +00:00
Jiahao XU
ca00cbaccc
feat: Support install directly from git repo ( #1162 )
...
Fixed #3
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-24 01:01:31 +00:00
dependabot[bot]
dd35fba232
build(deps): update itertools requirement from 0.10.5 to 0.11.0 in /crates/binstalk ( #1163 )
...
build(deps): update itertools requirement in /crates/binstalk
Updates the requirements on [itertools](https://github.com/rust-itertools/itertools ) to permit the latest version.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 04:24:08 +00:00
github-actions[bot]
12c1160a41
dep: Upgrade transitive dependencies ( #1164 )
...
Co-authored-by: github-actions <github-actions@github.com>
2023-06-23 04:24:06 +00:00
Jiahao XU
138112cd6e
Optimize TargetTriple
: Use Cow<'static, str>
( #1161 )
...
instead of `CompactString` since `target_lexicon::{OperatingSystem,
Architecture, Environment}::into_str()` will return a `&'static str`
most of the time.
Also updated `SUPPORT.md`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-21 10:05:19 +00:00
Jiahao XU
abecd9ae14
ci: Publish to crates.io in release.yml
after tagging ( #1152 )
...
Fixed #1046
so that we don't have to manually run `cargo-publish` after the CI is
merged.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-21 10:04:09 +00:00