Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust backend always includes runtime code, doesn't emit it unless building the target program #5203

Open
robin-aws opened this issue Mar 15, 2024 · 0 comments
Labels
lang: rust Dafny's transpiler to Rust and its runtime

Comments

@robin-aws
Copy link
Member

robin-aws commented Mar 15, 2024

Two separate but related issues:

  1. The runtime source should only be emitted if --include-runtime is true, but the Rust backend ignores this option and always emits it.
  2. The code to emit the runtime source is in RustBackend.CompileTargetProgram, so it's only run if /compile is at least 1, or the command is dafny build or run or test. It should also be emitted even if /compile is 0, or the command is translate.
@robin-aws robin-aws self-assigned this Mar 15, 2024
@robin-aws robin-aws added the lang: rust Dafny's transpiler to Rust and its runtime label Mar 15, 2024
@robin-aws robin-aws removed their assignment Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: rust Dafny's transpiler to Rust and its runtime
Projects
None yet
Development

No branches or pull requests

1 participant