@@ -193,6 +193,7 @@ transpile_implementation: SRC_INDEX_TRANSPILE=$(if $(SRC_INDEX),$(SRC_INDEX),src
193193# Also the expectation is that verification happens in the `verify` target
194194# `find` looks for `Index.dfy` files in either V1 or V2-styled project directories (single vs. multiple model files).
195195transpile_implementation :
196+ dafny --version
196197 find ./dafny/** /$(SRC_INDEX_TRANSPILE ) / ./$(SRC_INDEX_TRANSPILE ) / -name ' Index.dfy' | sed -e ' s/^/include "/' -e ' s/$$/"/' | dafny \
197198 translate $(TARGET ) \
198199 --stdin \
@@ -231,6 +232,7 @@ _transpile_test_all: TRANSPILE_DEPENDENCIES=$(if ${DIR_STRUCTURE_V2}, $(patsubst
231232_transpile_test_all : transpile_test
232233
233234transpile_test :
235+ dafny --version
234236 find ./dafny/** /$(TEST_INDEX_TRANSPILE ) ./$(TEST_INDEX_TRANSPILE ) -name " *.dfy" -name ' *.dfy' | sed -e ' s/^/include "/' -e ' s/$$/"/' | dafny \
235237 translate $(TARGET ) \
236238 --stdin \
@@ -609,7 +611,7 @@ transpile_implementation_rust: SRC_INDEX=$(RUST_SRC_INDEX)
609611transpile_implementation_rust : TEST_INDEX=$(RUST_TEST_INDEX )
610612# The Dafny Rust code generator is not complete yet,
611613# so we want to emit code even if there are unsupported features in the input.
612- transpile_implementation_rust : DAFNY_OPTIONS=--emit-uncompilable-code --allow-warnings --compile-suffix --rust-module-name implementation_from_dafny
614+ transpile_implementation_rust : DAFNY_OPTIONS=--emit-uncompilable-code --allow-warnings --compile-suffix --rust-module-name implementation_from_dafny --rust-sync
613615# The Dafny Rust code generator only supports a single crate for everything,
614616# so we inline all dependencies by not passing `-library` to Dafny.
615617transpile_implementation_rust : TRANSPILE_DEPENDENCIES=
@@ -629,14 +631,15 @@ _mv_implementation_rust:
629631# Pre-process the Dafny-generated Rust code to remove them.
630632 sed -i -e 's/[[:space:]]*$$//' runtimes/rust/src/implementation_from_dafny.rs
631633 rm -f runtimes/rust/src/implementation_from_dafny.rs-e
632- rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs
634+ # rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs
633635 rm -rf implementation_from_dafny-rust
634636
635637build_rust :
636638 cd runtimes/rust; \
637639 cargo build
638640
639641test_rust :
642+ rustc --version
640643 cd runtimes/rust; \
641644 cargo test --release -- --nocapture
642645
@@ -776,7 +779,7 @@ local_transpile_impl_rust_single: TARGET=rs
776779local_transpile_impl_rust_single : OUT=implementation_from_dafny
777780local_transpile_impl_rust_single : SRC_INDEX=$(RUST_SRC_INDEX )
778781local_transpile_impl_rust_single : TEST_INDEX=$(RUST_TEST_INDEX )
779- local_transpile_impl_rust_single : DAFNY_OPTIONS=--emit-uncompilable-code --allow-warnings --compile-suffix
782+ local_transpile_impl_rust_single : DAFNY_OPTIONS=--emit-uncompilable-code --allow-warnings --compile-suffix --rust-sync
780783local_transpile_impl_rust_single : TRANSPILE_DEPENDENCIES=
781784local_transpile_impl_rust_single : STD_LIBRARY=
782785local_transpile_impl_rust_single : SRC_INDEX_TRANSPILE=$(if $(SRC_INDEX ) ,$(SRC_INDEX ) ,src)
0 commit comments