Skip to content

Commit 96a75d7

Browse files
authored
Merge pull request #3295 from o1-labs/dw/use-toml-rust-toolchain
Rust: use toml format instead of plain text
2 parents ac2de05 + 1674b38 commit 96a75d7

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/actions/toolchain-shared/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ runs:
2121
- shell: bash
2222
run: |
2323
# overwriting default rust-toolchain
24-
echo ${{ inputs.rust_toolchain_version }} > rust-toolchain
24+
cat > rust-toolchain.toml << EOF
25+
[toolchain]
26+
channel = "${{ inputs.rust_toolchain_version }}"
27+
EOF
2528
- uses: dtolnay/rust-toolchain@master
2629
id: toolchain
2730
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
133133
- name: Check that up-to-date specification is checked in
134134
run: |
135-
git diff --exit-code ":(exclude)rust-toolchain"
135+
git diff --exit-code ":(exclude)rust-toolchain.toml"
136136
137137
- name: Doc tests
138138
run: |

rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

rust-toolchain.toml

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

0 commit comments

Comments
 (0)