Commit graph

2124 commits

Author SHA1 Message Date
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
Jiahao XU
e18ac6e117
Run Manifest parsing in block_in_place mode
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 19:55:09 +10:00
Jiahao XU
60caa9ee17
Run load_manifest_path in block_in_place mode
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 19:50:25 +10:00
Jiahao XU
a35db557ea
Run "Install binaries" step in block_in_place mode
Since they execute a lot of blocking fs operations.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 19:48:03 +10:00
Félix Saparelli
cc8144e06d
Merge pull request #192 from NobodyXu/optimize/parallelize-target-detection
Optimize/parallelize target detection
2022-06-23 21:41:15 +12:00
Jiahao XU
536f3b2c6f
Fix macos detection: Use super::TARGET as fallback
When `guess_host_triple` failed to detect the target.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 19:39:36 +10:00