Skip to content

Commit cfb378e

Browse files
committed
m
1 parent f039dd0 commit cfb378e

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.github/workflows/library_rust_tests.yml

+6-17
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,11 @@ jobs:
5555
uses: actions-rust-lang/[email protected]
5656
with:
5757
components: rustfmt
58-
# uncomment this after Rust formatter works
59-
# - name: Rustfmt Check
60-
# uses: actions-rust-lang/rustfmt@v1
6158

62-
# Use setup-dafny-actions with correct version when Dafny releases 4.8.2
6359
- name: Setup Dafny
64-
uses: ./submodules/smithy-dafny/.github/actions/build_dafny_from_source
60+
uses: dafny-lang/setup-dafny[email protected]
6561
with:
66-
dafny-version: 4.9.2
67-
ref: a928ebf5733dca040cbbb9b0c5861c20fb5bff6d
62+
dafny-version: nightly-2025-01-30-7db1e5f
6863

6964
- name: Update MPL submodule if using MPL HEAD
7065
if: ${{ inputs.mpl-head == true }}
@@ -75,16 +70,6 @@ jobs:
7570
git submodule update --init --recursive
7671
git rev-parse HEAD
7772
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-
8873
- name: Setup Java 17 for codegen
8974
uses: actions/setup-java@v3
9075
with:
@@ -112,6 +97,10 @@ jobs:
11297
CORES=$(node -e 'console.log(os.cpus().length)')
11398
make transpile_rust TRANSPILE_TESTS_IN_RUST=1 CORES=$CORES
11499
100+
- name: Rustfmt Check
101+
uses: actions-rust-lang/rustfmt@v1
102+
working-directory: ./${{ matrix.library }}/runtimes/rust
103+
115104
- name: Copy ${{ matrix.library }} Vector Files
116105
if: ${{ matrix.library == 'TestVectors' }}
117106
shell: bash

submodules/smithy-dafny

0 commit comments

Comments
 (0)