Skip to content

Commit

Permalink
chore: add mkdir for rust (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz authored Aug 6, 2024
1 parent a0fd2c5 commit 0f98539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SmithyDafnyMakefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,7 @@ transpile_dependencies_test_rust: LANG=rust
transpile_dependencies_test_rust: transpile_dependencies_test

_mv_implementation_rust:
rm -rf runtimes/rust/dafny_impl/src
mkdir -p runtimes/rust/dafny_impl/src
mkdir -p runtimes/rust/src
# TODO: Currently need to insert an import of the the StandardLibrary.
python -c "import sys; data = sys.stdin.buffer.read(); sys.stdout.buffer.write(data.replace(b'\npub mod', b'\npub use dafny_standard_library::implementation_from_dafny::*;\n\npub mod', 1) if b'\npub mod' in data else data)" \
< implementation_from_dafny-rust/src/implementation_from_dafny.rs > runtimes/rust/src/implementation_from_dafny.rs
Expand Down

0 comments on commit 0f98539

Please sign in to comment.