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
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
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
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
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
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
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
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
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]
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
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
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
d8419ea5a2
feat: Add more variables for template ( #1160 )
...
Fixed #775
- Add dep target-lexicon v0.12.7
- Add `target-{family, arch, libc, vendor}` to
`package.metadata.binstall`.
For `{universal, universal2}-apple-darwin`, the `target-arch` is set to
`universal`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-20 22:05:13 +00:00
Jiahao XU
181b5293e7
dep: Bump strum v0.24.1 => v0.25.0 ( #1159 )
...
Also bump strum_macros v0.24.3 => v0.25.0
[strum and strum_macros v0.25.0 changelog][1]
[1]: https://github.com/Peternator7/strum/blob/master/CHANGELOG.md
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-20 00:16:10 +00:00
dependabot[bot]
bf46862140
build(deps): bump once_cell from 1.17.2 to 1.18.0 ( #1127 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.2 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.2...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
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-06-05 02:29:41 +00:00
Jiahao XU
22b3419fce
feat: Add GraphQL support to GhApiClient
( #1124 )
...
Fixed #868
- Add new fn `remote::Client::post`
- Add new fn `remote::RequestBuilder::body`
- Re-export `reqwest::Body` in `remote`
- Add dep percent-encoding v2.2.0 to binstalk-downloader
- Add dep serde-tuple-vec-map v1.0.1 to binstalk-downloader
- Add GraphQL to `GhApiClient`, fallback to Restful API if token is not
provided or authorization failed.
- Fixed `GhReleaseArtifact::try_extract_artifact_from_str`: decode
percent encoded http url path and add regression tests
- Added variant `GhApiError::Context` & `GhApiContextError`
- Added variant `GhApiError::GraphQLErrors` & `GhGraphQLErrors`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-04 14:09:49 +00:00
Jiahao XU
1432093dcc
feat: Add new cmdline option --no-track
( #1111 )
...
Same as `cargo-install`'s `--no-track`.
It is also passed to `cargo-install` if it is invoked.
Also fixed `fs::atomic_symlink_file` which on Windows could fallback to
non-atomic install if symlinking failed.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-03 09:15:18 +00:00
dependabot[bot]
f1bfe23672
Bump cargo_toml from 0.15.2 to 0.15.3 ( #1116 )
...
Bumps [cargo_toml](https://gitlab.com/crates.rs/cargo_toml ) from 0.15.2 to 0.15.3.
- [Commits](https://gitlab.com/crates.rs/cargo_toml/compare/v0.15.2...v0.15.3 )
---
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-06-02 04:40:31 +00:00
dependabot[bot]
e789064289
Bump once_cell from 1.17.1 to 1.17.2 ( #1106 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.1 to 1.17.2.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.1...v1.17.2 )
---
updated-dependencies:
- dependency-name: once_cell
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-05-30 04:06:18 +00:00
dependabot[bot]
b23598ed85
Bump tokio from 1.28.1 to 1.28.2 ( #1100 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.1...tokio-1.28.2 )
---
updated-dependencies:
- dependency-name: tokio
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-05-29 03:02:20 +00:00
github-actions[bot]
39748ecadf
release: binstalk-downloader v0.5.1 ( #1095 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-05-26 16:06:51 +00:00
github-actions[bot]
47dbc99555
release: binstalk v0.12.1 ( #1096 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-05-26 15:47:43 +00:00
Jiahao XU
e96477a116
Optimize fetch_crate_cratesio
for exact version ( #1089 )
...
If `version_req` requests a specific version instead of a range, then
there is no need to pull all versions available from
https://crates.io/api/v1/crates
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-05-25 12:56:31 +00:00
Jiahao XU
f8255b1b81
dep: Downgrade tracing from v0.1.38 => v0.1.37 due to yanking ( #1085 )
...
Fixed #1019
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-05-24 14:27:05 +00:00
dependabot[bot]
f2ac44757a
Bump miette from 5.8.0 to 5.9.0 ( #1071 )
...
Bumps [miette](https://github.com/zkat/miette ) from 5.8.0 to 5.9.0.
- [Release notes](https://github.com/zkat/miette/releases )
- [Changelog](https://github.com/zkat/miette/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zkat/miette/compare/miette-derive-v5.8.0...miette-derive-v5.9.0 )
---
updated-dependencies:
- dependency-name: miette
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-05-19 02:45:22 +00:00
dependabot[bot]
9a7445a88f
Bump serde from 1.0.162 to 1.0.163 ( #1048 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.162 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163 )
---
updated-dependencies:
- dependency-name: serde
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-05-12 03:55:08 +00:00
dependabot[bot]
62c59beca6
Bump tokio from 1.28.0 to 1.28.1 ( #1042 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.0...tokio-1.28.1 )
---
updated-dependencies:
- dependency-name: tokio
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-05-11 13:37:55 +10:00
dependabot[bot]
cb906ae0bf
Bump serde from 1.0.160 to 1.0.162 ( #1032 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.162.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162 )
---
updated-dependencies:
- dependency-name: serde
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-05-05 15:05:53 +10:00
github-actions[bot]
8cc1430ca6
release: binstalk v0.12.0 ( #1013 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-04-26 19:57:57 +10:00
github-actions[bot]
f683b4075d
release: binstalk-downloader v0.5.0 ( #1011 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-04-26 18:44:23 +10:00
github-actions[bot]
1a94a36311
release: leon-macros v1.0.0 ( #1009 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-04-26 18:05:14 +10:00
github-actions[bot]
5b0268c768
release: binstalk-types v0.4.0 ( #1008 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-04-26 17:31:21 +10:00
github-actions[bot]
613aae2b1e
release: leon v2.0.0 ( #1007 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-04-26 17:30:24 +10:00
dependabot[bot]
e4d88310ed
Bump tracing from 0.1.37 to 0.1.38 ( #1005 )
2023-04-26 04:39:51 +00:00
dependabot[bot]
a47ca44100
Bump tokio from 1.27.0 to 1.28.0 ( #1001 )
2023-04-26 04:09:29 +00:00
dependabot[bot]
bb68d67df1
Bump home from 0.5.4 to 0.5.5 ( #1003 )
...
Bumps [home](https://github.com/rust-lang/cargo ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/rust-lang/cargo/releases )
- [Changelog](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cargo/compare/home-0.5.4...home-0.5.5 )
---
updated-dependencies:
- dependency-name: home
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-04-26 13:28:27 +10:00
Jiahao XU
0261d12d9d
Support subcrate in repo ( #991 )
...
Fixed #838
- Add new key `subcrate` for rendering `pkg-url`
- Add new release paths in GitHub, GitLab & SourceForge using key `subcrate` for auto-detection
- Add subcrate detection for GitHub and GitLab
- Add `debug!` when using gh api token in `GhApiClient::new`
- Add subcrate testing to `e2e-tests/subcrate.sh`
- Bump cargo-release to 0.24.9 in e2e-tests/live.sh
to fix test failure on MacOS without libssl installed in `/usr/local/`.
- Optimize GhCrateMeta: Detect subcrate and repo-host in `Data::get_repo_info`
to cache the result and avoid duplicate works, this also makes the code
more ergonomic by removing the need to some `unwrap()` plus making it
more efficient since we don't need to clone the url just to modify it.
- Add instrument to `Data::get_repo_info`
- Fix `shellcheck` err in `e2e-tests/*.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-24 19:41:20 +10:00
dependabot[bot]
913ec83918
Bump miette from 5.7.0 to 5.8.0 ( #993 )
...
Bumps [miette](https://github.com/zkat/miette ) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/zkat/miette/releases )
- [Changelog](https://github.com/zkat/miette/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zkat/miette/compare/miette-derive-v5.7.0...miette-derive-v5.8.0 )
---
updated-dependencies:
- dependency-name: miette
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-04-19 13:46:25 +10:00
Jiahao XU
5683ca2476
Add new crate leon-macros
that provide template!
with identical syntax as runtime parsing ( #946 )
...
`leon_macros::template!` can parse template at compile-time.
It accepts a utf-8 string literal and uses `leon` internally to parse it, then generate code that evaluates to `Template<'static>`.
- Exclude fuzz from crate leon when publishing
- Impl fn-like proc-macro `leon_macros::template!`
- Add dep `leon-macros` to binstalk
- Use `leon_macros::template!` in `binstalk::fetchers::gh_crate_meta::hosting`
- Add doc for `leon-macros` in `leon`
- Improve `std::fmt::Display` impl for `leon::ParseError`
- Fixed broken infra link in leon
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-17 14:50:58 +10:00
dependabot[bot]
345c14d7ba
Bump jobslot from 0.2.10 to 0.2.11 ( #989 )
...
Bumps [jobslot](https://github.com/cargo-bins/jobslot ) from 0.2.10 to 0.2.11.
- [Release notes](https://github.com/cargo-bins/jobslot/releases )
- [Commits](https://github.com/cargo-bins/jobslot/compare/v0.2.10...v0.2.11 )
---
updated-dependencies:
- dependency-name: jobslot
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-04-17 12:43:48 +10:00
dependabot[bot]
067af4ea25
Bump serde from 1.0.159 to 1.0.160 ( #985 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.159 to 1.0.160.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160 )
---
updated-dependencies:
- dependency-name: serde
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-04-12 13:35:00 +10:00
dependabot[bot]
363dbc650a
Bump miette from 5.6.0 to 5.7.0 ( #973 )
2023-04-03 03:06:19 +00:00
dependabot[bot]
d7441e4675
Bump windows from 0.47.0 to 0.48.0 ( #974 )
2023-04-03 02:49:53 +00:00