Commit graph

1611 commits

Author SHA1 Message Date
Jiahao XU
8bd4b9b6a1
Impl detect_targets for linux
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-06 22:32:15 +10:00
Jiahao XU
69f2a56595
Move TARGET in lib.rs into new mod target.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-06 22:00:01 +10:00
dependabot[bot]
fe551438a0
Bump async-trait from 0.1.53 to 0.1.56
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.53 to 0.1.56.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.53...0.1.56)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 01:25:44 +00:00
dependabot[bot]
962e68f786
Bump tokio from 1.18.2 to 1.19.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.18.2 to 1.19.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.18.2...tokio-1.19.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 01:25:38 +00:00
Félix Saparelli
6ab55d9dda
Fix arm64 linux URL 2022-06-01 01:46:28 +12:00
Félix Saparelli
6457ab9b64
(cargo-release) version 0.8.0 2022-06-01 01:30:48 +12:00
Félix Saparelli
ab678a8127
Merge pull request #153 from passcod/clippy 2022-06-01 01:28:33 +12:00
Félix Saparelli
e3754de7f7
Formatting 2022-06-01 01:11:53 +12:00
Félix Saparelli
23f05f3985
Clippy in tests 2022-06-01 01:11:26 +12:00
Félix Saparelli
7ce1ac4ee6
Fix syntax 2022-06-01 01:11:26 +12:00
Félix Saparelli
f2905dd46e
Update src/helpers.rs
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-01 01:11:26 +12:00
Félix Saparelli
ac74da4a27
Clippy suggestions 2022-06-01 01:11:26 +12:00
Félix Saparelli
13a8e1e5fe
Merge pull request #152 from passcod/warn-on-http
Warn on non-HTTPS URLs
2022-06-01 01:11:01 +12:00
Félix Saparelli
b79d8d7fec
Warn on non-HTTPS url 2022-06-01 00:43:41 +12:00
Félix Saparelli
a1fa3a47e5
Merge pull request #151 from passcod/rich-errors 2022-06-01 00:42:36 +12:00
Félix Saparelli
73b3ac1adb
Drop tokio macros 2022-06-01 00:30:28 +12:00
Félix Saparelli
77b331f97c
Add error codes to documentation 2022-06-01 00:29:18 +12:00
Félix Saparelli
529781a9a9
Format and link version mismatch warning 2022-06-01 00:29:18 +12:00
Félix Saparelli
aa4339e07d
Expose crate::errors module 2022-06-01 00:29:17 +12:00
Félix Saparelli
1cac046ffd
Formatting 2022-06-01 00:29:17 +12:00
Félix Saparelli
dee45f4b81
Correct HTTP error for remote_exists() helper 2022-06-01 00:29:17 +12:00
Félix Saparelli
c83c184983
Default to no if nothing is entered on confirm 2022-06-01 00:29:17 +12:00
Félix Saparelli
52c0213d98
Show prompt for confirm 2022-06-01 00:29:17 +12:00
Félix Saparelli
7f0c818313
Don’t print "Fatal error" for UserAbort 2022-06-01 00:29:17 +12:00
Félix Saparelli
d21c4a0875
Add link to error code descriptions 2022-06-01 00:29:17 +12:00
Félix Saparelli
33f4c76826
Add help text for when a crate is not found 2022-06-01 00:29:17 +12:00
Félix Saparelli
84ebc0039e
Pretty-print errors 2022-06-01 00:29:17 +12:00
Félix Saparelli
02c8c0af00
Avoid bare url 2022-06-01 00:29:17 +12:00
Félix Saparelli
bd35c473a9
Use new Termination trait 2022-06-01 00:29:17 +12:00
Félix Saparelli
f56ed6fc4c
Add per-error exit codes 2022-06-01 00:29:17 +12:00
Félix Saparelli
f9e69503b0
Document the library error types 2022-06-01 00:29:17 +12:00
Félix Saparelli
c0eaffb05d
Refactor for rich errors, split user abort and genuine error 2022-06-01 00:29:14 +12:00
Félix Saparelli
3c38a2f0eb
Merge pull request #150 from NobodyXu/optimize-dependencies 2022-06-01 00:06:02 +12:00
Jiahao XU
39580cdc51
Update Cargo.lock
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:49:04 +10:00
Jiahao XU
fff4b72256
Enable feature zlib-ng of flate2 so that zlib-ng is used
which is the fastest implementation flate2 supports.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:12 +10:00
Jiahao XU
20b2c37ffb
Bump dep flate2 to v1.0.24
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:11 +10:00
Jiahao XU
355895d8b6
Disable all features of zip except deflate, bzip2 and zstd
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:45:10 +10:00
Jiahao XU
91bb84d5a8
Optimize dep tokio: Disable all feature except rt-multi-thread, macros
and process

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 21:44:20 +10:00
Félix Saparelli
db3f12c3ea
Merge pull request #148 from NobodyXu/feature/zstd 2022-05-31 23:02:16 +12:00
Jiahao XU
5d62f7f615
Rm target aarch64-unknown-linux-gnu & armv7-unknown-linux-gnueabihf
Since they are the only two targets that crate `zstd-sys` failed to
build.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 20:41:32 +10:00
Félix Saparelli
03d4630024
Merge pull request #149 from NobodyXu/optimize-release 2022-05-31 22:34:46 +12:00
Jiahao XU
393e808951
Update Cross.toml
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2022-05-31 19:36:39 +10:00
Jiahao XU
66a3e9f416
Add back workaround for musl targets
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:32:02 +10:00
Jiahao XU
e0f67973ae
Update Cross.toml
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2022-05-31 19:31:20 +10:00
Jiahao XU
5f3396a886
Rm image specification for musl targets in Cross.toml
musl targets work fine, no workaound is required.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:25:44 +10:00
Jiahao XU
ca6469ca66
Fix image ver format in Cross.toml
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:23:20 +10:00
Jiahao XU
ba5a81d792
Pin image version in Cross.toml
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 19:09:26 +10:00
Jiahao XU
69a23e477a
Add workaround libclang.so not found error when cross bulding
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 18:19:09 +10:00
Jiahao XU
84d8b9295f
Set profile.release.strip to symbols in Cargo.toml
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 17:39:33 +10:00
Jiahao XU
7b39239729
Revert "Set RUSTFLAGS to -Cstrip=symbols in job build"
This reverts commit c3c1c97dd3.
2022-05-31 17:39:19 +10:00