Commit graph

539 commits

Author SHA1 Message Date
Jiahao XU
a672f00575
Merge pull request #210 from NobodyXu/feature/crate-version
Feature: Support specifing versions via `crate_name@req`
2022-07-12 19:09:50 +10:00
Jiahao XU
aecc474f29
Rm unused BinstallError::VersionWarning
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 18:34:20 +10:00
Jiahao XU
c87941211c
Treat 1.2.3 as =1.2.3 to match cargo-install
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 18:33:31 +10:00
Jiahao XU
e2207f7b59
Add diagnostic(help) to DuplicateVersionReq
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 17:12:01 +10:00
Jiahao XU
ff0bd4d948
Support specifing ver via crate_name@version
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 17:08:54 +10:00
Jiahao XU
41961ce218
Add new variant BinstallError::DuplicateVersionReq
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 17:03:12 +10:00
Jiahao XU
38c8bc8cf2
Impl new type helpes::CrateName
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-12 16:47:44 +10:00
Jiahao XU
3b1b59c097
Merge pull request #209 from NobodyXu/refactor/confirm
Refactor: Confirm only once and move all confirmations into `entry`
2022-07-12 12:43:08 +10:00
Jiahao XU
4a9e04967c
Refactor: Mv confirmation from install_from_source to entry
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-11 22:21:11 +10:00
Jiahao XU
8bbc6d0171
Rm unused lint allow(clippy::too_many_arguments)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-11 22:19:21 +10:00
Jiahao XU
2d0c4a8c4e
Refactor: Extract fn collect_bin_files
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-11 22:18:45 +10:00
Jiahao XU
7a85cae859
Refactor: Mv confirm into entry and remove unncessary confirm
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-11 21:49:28 +10:00
Jiahao XU
e4b92a3bb7
Merge pull request #208 from ryankurte/dependabot/cargo/miette-5.1.1
Bump miette from 5.1.0 to 5.1.1
2022-07-11 12:44:36 +10:00
dependabot[bot]
d1fe2acfdd
Bump miette from 5.1.0 to 5.1.1
Bumps [miette](https://github.com/zkat/miette) from 5.1.0 to 5.1.1.
- [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.1.0...miette-derive-v5.1.1)

---
updated-dependencies:
- dependency-name: miette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 01:44:00 +00:00
Jiahao XU
114c199e98
Merge pull request #207 from NobodyXu/refactor
Refactor: Rm global variable `helpers::Client`
2022-07-10 18:23:40 +10:00
Jiahao XU
aa466750b7
Rm unused dep once_cell
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-10 18:08:07 +10:00
Jiahao XU
fa63dbe5cf
Refactor: Rm global var helpers::CLIENT
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-10 18:07:07 +10:00
Félix Saparelli
3c06c45792
Merge pull request #206 from passcod/mimalloc-on-windows
Add mimalloc on feature flag
2022-07-07 00:14:31 +12:00
Félix Saparelli
63afa5b791
Just hide mimalloc behind a feature, available for all platforms 2022-07-06 23:33:51 +12:00
Félix Saparelli
e66dc60867
Also use mimalloc on musl 2022-07-06 23:31:24 +12:00
Félix Saparelli
57c6125fc1
Update Cargo.toml
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-05 23:56:30 +12:00
Félix Saparelli
fe724585ae
Use mimalloc on windows 2022-07-05 23:10:57 +12:00
Félix Saparelli
3348d3d7a2
(cargo-release) version 0.10.0 2022-07-05 22:46:43 +12:00
Félix Saparelli
9294b4e4bc
Merge pull request #198 from NobodyXu/optimize/reuse-client 2022-07-05 22:32:49 +12:00
Félix Saparelli
6605c00552
Merge pull request #202 from ryankurte/dependabot/cargo/serde-1.0.138 2022-07-05 22:31:44 +12:00
dependabot[bot]
efe04be5a5
Bump serde from 1.0.137 to 1.0.138
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 10:29:38 +00:00
Félix Saparelli
9f48e47179
Merge pull request #204 from ryankurte/dependabot/cargo/semver-1.0.12 2022-07-05 22:27:42 +12:00
Félix Saparelli
6a127bab86
Don’t double up unit tests on PRs 2022-07-05 22:18:50 +12:00
Félix Saparelli
38ce26d0c4
Remame workflows for clarity 2022-07-05 22:17:10 +12:00
Jiahao XU
5ad572fa42
Rename new_reqwest_client > get_reqwest_client
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-05 19:57:56 +10:00
Jiahao XU
6582eefd25
Refactor: Replace REQWESTCONFIG with initialize_reqwest_client
so that we don't need two `OnceCell`s.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-05 19:57:54 +10:00
Jiahao XU
50b436100e
Reuse Client everywhere instead of recreate one
which pools the connection to the same site (github.com).

This commit also sets `USER_AGENT` so that quickinstall
can reuse it.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-05 19:57:14 +10:00
Félix Saparelli
9b26fea231
Merge pull request #203 from ryankurte/dependabot/cargo/clap-3.2.8 2022-07-05 21:54:14 +12:00
dependabot[bot]
a4663f46ee
Bump semver from 1.0.10 to 1.0.12
Bumps [semver](https://github.com/dtolnay/semver) from 1.0.10 to 1.0.12.
- [Release notes](https://github.com/dtolnay/semver/releases)
- [Commits](https://github.com/dtolnay/semver/compare/1.0.10...1.0.12)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 09:53:24 +00:00
Félix Saparelli
7518993212
Merge pull request #195 from NobodyXu/feature/atomic-install 2022-07-05 21:52:06 +12:00
Félix Saparelli
f056978858
Merge pull request #199 from NobodyXu/fix-and-improve-windows-target-detection 2022-07-05 21:49:35 +12:00
Félix Saparelli
408c427ab4
Merge pull request #200 from NobodyXu/turn-down-opt-level-in-ci 2022-07-05 21:47:55 +12:00
Félix Saparelli
2eed701d3f
Merge pull request #205 from passcod/write-to-meta-files 2022-07-05 21:47:31 +12:00
Félix Saparelli
68ba9b06f5
Create meta files if not present 2022-07-05 21:46:58 +12:00
Félix Saparelli
17cf6f5dc5
Write to .crates2.json 2022-07-05 21:17:59 +12:00
Félix Saparelli
1c2d005fd4
Write to .crates.toml 2022-07-04 23:53:47 +12:00
dependabot[bot]
d8a3375bc3
Bump clap from 3.2.6 to 3.2.8
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.6...v3.2.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 01:26:34 +00:00
Jiahao XU
267307fa28
Set opt-level for release to s
O3 mostly enables float optimization, more aggressive loop unrolling and
function inline.

O2 is probably OK, but I want to reduce the binary size a bit by using
opt level "s".

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-03 18:12:37 +10:00
Jiahao XU
1ec1f972b7
Fix copy-paste error in detect_targets_windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-01 19:46:30 +10:00
Jiahao XU
8e58398f57
Fix windows target detection for abi gnullvm
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-01 19:34:52 +10:00
Jiahao XU
ec6f81935c
Refactor: Extract detect_alternative_targets
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-01 19:30:31 +10:00
Félix Saparelli
caf6f3930b
(cargo-release) version 0.9.2 2022-06-29 02:05:27 +12:00
Félix Saparelli
43e4e17e84
Fix test 2022-06-29 01:48:59 +12:00
Félix Saparelli
72148ec572
Update deps 2022-06-28 03:19:05 +12:00
Félix Saparelli
66a14d0c7c
Polish up new secure options 2022-06-28 03:19:04 +12:00