@@ -55,16 +55,11 @@ jobs:
55
55
uses :
actions-rust-lang/[email protected]
56
56
with :
57
57
components : rustfmt
58
- # uncomment this after Rust formatter works
59
- # - name: Rustfmt Check
60
- # uses: actions-rust-lang/rustfmt@v1
61
58
62
- # Use setup-dafny-actions with correct version when Dafny releases 4.8.2
63
59
- name : Setup Dafny
64
- uses : ./submodules/smithy -dafny/.github/actions/build_dafny_from_source
60
+ uses :
dafny-lang/setup -dafny[email protected]
65
61
with :
66
- dafny-version : 4.9.2
67
- ref : a928ebf5733dca040cbbb9b0c5861c20fb5bff6d
62
+ dafny-version : nightly-2025-01-30-7db1e5f
68
63
69
64
- name : Update MPL submodule if using MPL HEAD
70
65
if : ${{ inputs.mpl-head == true }}
75
70
git submodule update --init --recursive
76
71
git rev-parse HEAD
77
72
78
- # Remove this after the formatting in Rust starts working
79
- - name : smithy-dafny Rust hacks
80
- shell : bash
81
- run : |
82
- if [ "$RUNNER_OS" == "macOS" ]; then
83
- sed -i '' 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' submodules/smithy-dafny/SmithyDafnyMakefile.mk
84
- else
85
- sed -i 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' submodules/smithy-dafny/SmithyDafnyMakefile.mk
86
- fi
87
-
88
73
- name : Setup Java 17 for codegen
89
74
uses : actions/setup-java@v3
90
75
with :
@@ -112,6 +97,10 @@ jobs:
112
97
CORES=$(node -e 'console.log(os.cpus().length)')
113
98
make transpile_rust TRANSPILE_TESTS_IN_RUST=1 CORES=$CORES
114
99
100
+ - name : Rustfmt Check
101
+ uses : actions-rust-lang/rustfmt@v1
102
+ working-directory : ./${{ matrix.library }}/runtimes/rust
103
+
115
104
- name : Copy ${{ matrix.library }} Vector Files
116
105
if : ${{ matrix.library == 'TestVectors' }}
117
106
shell : bash
0 commit comments