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
Félix Saparelli
4bc16863e0
Format -> formats
2022-06-28 03:19:04 +12:00
Félix Saparelli
401fa8772c
Merge pull request #194 from NobodyXu/fix/blocking
2022-06-28 03:14:27 +12:00
Félix Saparelli
9d70e33337
Merge pull request #193 from NobodyXu/fix/macos-target-detection
...
Fix macos detection: Use built-time `TARGET` as fallback
2022-06-28 03:10:18 +12:00
Jiahao XU
14c606d72b
Simplify BinFile::link_dest
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 23:27:16 +10:00
Jiahao XU
43238e39a3
Use atomic_symlink_file
in install_link
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 23:26:46 +10:00
Jiahao XU
77ce57815c
Impl new fn helpers::symlink_file
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 23:26:30 +10:00
Jiahao XU
e9c86dfad4
Rm set_permissions
in BinFile::install_bin
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 22:51:50 +10:00
Jiahao XU
d4105585db
Fix atomic_install
: Copy permissions of src
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 22:50:30 +10:00
Jiahao XU
97bfeb7bd8
Use atomic_install
in install_bin
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 21:27:44 +10:00
Jiahao XU
7616546a61
Impl new fn atomic_install
for atommically installing a file
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 21:27:15 +10:00