Skip to content

Commit

Permalink
使用 clippy 修正一些代码风格;升级、精简依赖 (#129)
Browse files Browse the repository at this point in the history
* 使用 `cargo clippy` 和 `cargo fmt` 修复代码风格 ...

... 除了所有编译器提示变量/函数未使用的部分

* 添加 clippy 忽略规则以忽略 pyo3 函数长参数警告 ...

... 并调整 `uploader::upload` 的传参方式

* 升级依赖,以及清理不必要的 feature 和依赖

* 在全部的架构上使用 Rustls,ring 0.17.0 已经没有架构限制

* 升级 `sqlx` 依赖至 0.7,并移除已被删除的 `offline` feature ...

因为 `offline` feature 已经是 sqlx 0.7 的默认选项了

* 重新建立 sqlx 缓存

* 尝试修复 ARM64 的 CI 问题

* 修复 ppc64el 和 s390x 的编译
  • Loading branch information
eatradish committed Jan 7, 2024
1 parent 9125abc commit aa3e7a3
Show file tree
Hide file tree
Showing 38 changed files with 1,905 additions and 1,570 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
container: ghcr.io/biliup/manylinux2014-cross:i686
- os: ubuntu
target: aarch64
manylinux: 2_28 # FIXME: look https://github.com/briansmith/ring/issues/1728
- os: ubuntu
target: armv7
interpreter: 3.7 3.8 3.9 3.10 3.11
Expand All @@ -120,16 +121,18 @@ jobs:
manylinux: musllinux_1_1
- os: ubuntu
target: ppc64le
container: ghcr.io/biliup/manylinux2014-cross:ppc64le
interpreter: 3.7 3.8 3.9 3.10 3.11
- os: ubuntu
target: s390x
container: ghcr.io/biliup/manylinux2014-cross:s390x
interpreter: 3.7 3.8 3.9 3.10 3.11
exclude:
# Windows on arm64 only supports Python 3.11+
- os: windows
target: aarch64
# FIXME: look https://github.com/briansmith/ring/issues/1728
- os: ubuntu
target: aarch64
manylinux: auto

runs-on: ${{ matrix.os }}-latest
steps:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
.idea
*.mp4
*.flv
*.json
*.exe
*.png
*.part
data.db*
!sqlx-data.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aa3e7a3

Please sign in to comment.