Commit graph

496 commits

Author SHA1 Message Date
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
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
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
Félix Saparelli
ee4cbaa3d5
Merge pull request #191 from NobodyXu/feature/target-detection-windows
feature:  Detect `*-pc-windows-gnu` targets in `targets.rs`
2022-06-23 21:34:37 +12:00
Félix Saparelli
f25f6d2ce7
Merge pull request #189 from NobodyXu/feature/https-only-mode
Feature: Support https only mode and min tls version
2022-06-23 21:23:08 +12:00
Jiahao XU
68d111f946
Use get_desired_targets in entry
instead of `detect_targets`, so that if `opts.targets` is
`None`, the future returned by `detect_targets` can be run
in parallel by using `tokio::spawn` with other async code
in `entry`, such as `fetch_crate_cratesio`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 14:47:59 +10:00
Jiahao XU
be4b3ead97
Add new fn get_desired_targets & newtype DesiredTargets
so that if `opts.targets` is `None`, the future returned by
`detect_targets` can be run in parallel by using `tokio::spawn` with
other async code in `entry`, such as `fetch_crate_cratesio`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 14:46:53 +10:00
Jiahao XU
8bc0f11569
Detect *-pc-windows-gnu targets in targets
And add fallback `*-pc-windows-msvc` to the returned targets.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:59:53 +10:00
Jiahao XU
c36f1fe08a
Add dep guess_host_triple v0.1.3 for windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:43:13 +10:00
Jiahao XU
691bc18dd0
Set min TLS ver to 1.2 for https only mode
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:03:50 +10:00
Jiahao XU
9b62ebdae1
Fix https only mode: It should not be http2 only
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:22 +10:00
Jiahao XU
b03ec6fb93
Fix run_tests_unix.sh: Add --no-confirm
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:22 +10:00
Jiahao XU
423fb0e373
Test https-only-mode & min-tls-ver in run_tests_unix.sh
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:22 +10:00
Jiahao XU
087d544331
Initialize REQWESTGLOBALCONFIG in main::entry
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:22 +10:00
Jiahao XU
a3ab3ec502
Add new static var REQWESTGLOBALCONFIG
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:22 +10:00
Jiahao XU
0423f54b53
Add new dep once_cell v1.12.0
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:01:21 +10:00
Jiahao XU
64f468acd6
Add new opt https_only_mode & min_tls_version
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:00:52 +10:00
Jiahao XU
eb7d460a9a
Add new enum TLSVersion which impl ArgEnum
and can be converted to `reqwest::tls::Version`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:00:52 +10:00
Jiahao XU
8e92db3dc6
Refactor: Extract new_reqwest_client(_builder)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 13:00:52 +10:00
Félix Saparelli
a747edffd5
Merge pull request #183 from ryankurte/dependabot/cargo/semver-1.0.10 2022-06-23 10:36:13 +12:00
Félix Saparelli
a90d1328ea
Merge pull request #190 from ryankurte/dependabot/cargo/clap-3.2.6 2022-06-23 07:11:56 +12:00
dependabot[bot]
ba114fceae
Bump semver from 1.0.9 to 1.0.10
Bumps [semver](https://github.com/dtolnay/semver) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases)
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 18:46:13 +00:00
dependabot[bot]
d8ad005800
Bump clap from 3.1.18 to 3.2.6
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.18 to 3.2.6.
- [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.1.18...v3.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 18:42:49 +00:00
Félix Saparelli
43511690f4
Add tbz2 to readme 2022-06-23 06:37:43 +12:00
Félix Saparelli
0998439312
Merge pull request #181 from qryxip/add-pkgfmt-tbz2 2022-06-23 06:37:02 +12:00
Félix Saparelli
ae9e0bdd77
Merge branch 'main' into add-pkgfmt-tbz2 2022-06-23 06:36:43 +12:00
Félix Saparelli
7baadebba3
Merge pull request #182 from ryankurte/dependabot/cargo/strum-0.24.1 2022-06-23 06:35:03 +12:00
Félix Saparelli
c042ccfaa5
Merge pull request #187 from ryankurte/dependabot/cargo/reqwest-0.11.11
Bump reqwest from 0.11.10 to 0.11.11
2022-06-23 06:20:21 +12:00
Félix Saparelli
ad091f7976
Merge pull request #188 from NobodyXu/remove-unused-dep
Rm unused dep `cargo_metadata`
2022-06-23 06:15:46 +12:00
Ryo Yamashita
27c0a379d4
Enable bzip2/static
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-23 02:38:04 +09:00
Ryo Yamashita
1b9f8c0ffc
Add PkgFmt::Tbz2 2022-06-23 02:37:55 +09:00