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

feat: add SimpleBlob TestModel for Rust #353

Merged
merged 14 commits into from
May 22, 2024
Merged

Conversation

andrewbanchich
Copy link
Collaborator

Description of changes:

adds SimpleBlob test model

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@andrewbanchich andrewbanchich marked this pull request as ready for review May 7, 2024 19:16
@andrewbanchich andrewbanchich requested a review from a team as a code owner May 7, 2024 19:16
@andrewbanchich andrewbanchich force-pushed the andrewbanchich/simpleblob branch 2 times, most recently from fa72165 to b2aaa32 Compare May 9, 2024 18:20
robin-aws
robin-aws previously approved these changes May 16, 2024
dafny_value.value().Extract().to_array(),
))
Some(
::std::rc::Rc::try_unwrap(dafny_value.value().Extract().to_array())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the right approach AFAICT. I'm not 100% sure it's the best we can do in the limit, but I am sure that it's much easier to optimize this kind of thing once we're actually generating the code, so it should be very quick to fix if we do realize we can do better latter. E.g. we may want to add this conversion to the Dafny Rust runtime.

@MikaelMayer
Copy link
Collaborator

MikaelMayer commented May 16, 2024

Please import the generated file runtimes/rust/dafny_impl/src/implementation_from_dafny.rs of PR #368 so that there will be no merge conflicts.

and I can help you generate the future files after #368 (need to install Dafny locally, on the branch feat-rust, and then run DAFNY=path/to/Dafny.exe make dafny_benerate in a SimpleBlob-like folder

@robin-aws robin-aws merged commit 923bc48 into main-1.x May 22, 2024
132 checks passed
@robin-aws robin-aws deleted the andrewbanchich/simpleblob branch May 22, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants