Skip to content

Commit 59d5e5d

Browse files
authored
fix: maturin release action with latest stable toolchain (#631)
* feat: change to rust edition 2024 Signed-off-by: Keming <kemingy94@gmail.com> * update ci lint rust edition Signed-off-by: Keming <kemingy94@gmail.com> * test action Signed-off-by: Keming <kemingy94@gmail.com> * retry Signed-off-by: Keming <kemingy94@gmail.com> * use commit hash Signed-off-by: Keming <kemingy94@gmail.com> * retry Signed-off-by: Keming <kemingy94@gmail.com> * retry Signed-off-by: Keming <kemingy94@gmail.com> * update maturin version Signed-off-by: Keming <kemingy94@gmail.com> * add rust toolchain file Signed-off-by: Keming <kemingy94@gmail.com> --------- Signed-off-by: Keming <kemingy94@gmail.com>
1 parent a03338c commit 59d5e5d

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
uses: actions/setup-python@v5
2525
with:
2626
python-version: "3.11"
27+
- name: Set up Rust
28+
uses: dtolnay/rust-toolchain@stable
2729
- name: Install dependencies
2830
run: |
2931
make install

.github/workflows/page.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: actions/setup-python@v5
3737
with:
3838
python-version: 3.12
39+
- name: Set up Rust
40+
uses: dtolnay/rust-toolchain@stable
3941
- name: Install dependencies
4042
run: |
4143
make install

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUST_SOURCE_FILES=src/*
66
install:
77
pip install -r requirements/dev.txt -r requirements/mixin.txt -r requirements/doc.txt
88
pre-commit install
9-
rustup toolchain install nightly
9+
rustup toolchain install nightly --no-self-update
1010
rustup component add rustfmt clippy --toolchain nightly
1111

1212
dev:

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "stable"
3+
components = [ "rustfmt", "clippy" ]

rustfmt.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
unstable_features = true
21
reorder_imports = true
2+
3+
# unstable
4+
unstable_features = true
35
format_strings = true
46
imports_granularity = "Module"
57
group_imports = "StdExternalCrate"

0 commit comments

Comments
 (0)