7272 uses : actions-rust-lang/setup-rust-toolchain@v1.10.1
7373 with :
7474 components : rustfmt
75- # TODO - uncomment this after Rust formatter works
76- # - name: Rustfmt Check
77- # uses: actions-rust-lang/rustfmt@v1
78-
79- # TODO: Remove this after the formatting in Rust starts working
80- - name : smithy-dafny Rust hacks
81- if : matrix.language == 'rust'
82- shell : bash
83- run : |
84- if [ "$RUNNER_OS" == "macOS" ]; then
85- sed -i '' 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
86- else
87- sed -i 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
88- fi
8975
9076 - name : Setup Go
9177 uses : actions/setup-go@v5
@@ -100,8 +86,15 @@ jobs:
10086 if : matrix.language == 'rust' && matrix.os == 'windows-latest'
10187 uses : ilammy/setup-nasm@v1
10288
103- - name : Setup Dafny
104- uses : dafny-lang/setup-dafny-action@v1.7.0
89+ - name : Setup Dafny Rust
90+ if : matrix.language == 'rust'
91+ uses : dafny-lang/setup-dafny-action@v1.8.0
92+ with :
93+ dafny-version : nightly-2025-01-30-7db1e5f
94+
95+ - name : Setup Dafny Not Rust
96+ if : matrix.language != 'rust'
97+ uses : dafny-lang/setup-dafny-action@v1.8.0
10598 with :
10699 dafny-version : ${{ inputs.dafny }}
107100
@@ -136,7 +129,6 @@ jobs:
136129 if : matrix.language == 'rust'
137130 uses : ./.github/actions/install_smithy_dafny_codegen_dependencies
138131
139- # TODO: Remove this after checking in Rust polymorph code
140132 - name : Run make polymorph_rust
141133 if : matrix.language == 'rust'
142134 shell : bash
@@ -251,20 +243,6 @@ jobs:
251243 uses : actions-rust-lang/setup-rust-toolchain@v1.10.1
252244 with :
253245 components : rustfmt
254- # TODO - uncomment this after Rust formatter works
255- # - name: Rustfmt Check
256- # uses: actions-rust-lang/rustfmt@v1
257-
258- # TODO: Remove this after the formatting in Rust starts working
259- - name : smithy-dafny Rust hacks
260- if : matrix.decrypting_language == 'rust'
261- shell : bash
262- run : |
263- if [ "$RUNNER_OS" == "macOS" ]; then
264- sed -i '' 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
265- else
266- sed -i 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
267- fi
268246
269247 - name : Setup Go
270248 uses : actions/setup-go@v5
@@ -279,8 +257,15 @@ jobs:
279257 if : matrix.decrypting_language == 'rust' && matrix.os == 'windows-latest'
280258 uses : ilammy/setup-nasm@v1
281259
282- - name : Setup Dafny
283- uses : dafny-lang/setup-dafny-action@v1.6.1
260+ - name : Setup Dafny Rust
261+ if : matrix.decrypting_language == 'rust'
262+ uses : dafny-lang/setup-dafny-action@v1.8.0
263+ with :
264+ dafny-version : nightly-2025-01-30-7db1e5f
265+
266+ - name : Setup Dafny Not Rust
267+ if : matrix.decrypting_language != 'rust'
268+ uses : dafny-lang/setup-dafny-action@v1.8.0
284269 with :
285270 dafny-version : ${{ inputs.dafny }}
286271
@@ -315,7 +300,6 @@ jobs:
315300 if : matrix.decrypting_language == 'rust'
316301 uses : ./.github/actions/install_smithy_dafny_codegen_dependencies
317302
318- # TODO: Remove this after checking in Rust polymorph code
319303 - name : Run make polymorph_rust
320304 if : matrix.decrypting_language == 'rust'
321305 shell : bash
0 commit comments