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

Support inline code arguments on main reactor for Rust target #1099

Merged
merged 3 commits into from
Apr 28, 2022

Conversation

jhaye
Copy link
Collaborator

@jhaye jhaye commented Apr 14, 2022

Previously inline arguments for the main reactor weren't handled in a way that was appropriate for clap, the CLI library used for Rust reactor programs.
Basically, it couldn't handle arguments like this: max_value: u64({= 1 << 60 =}).

This PR upgrades to a stable version of clap and handles inline arguments correctly. This depends on #1098, so that should be merged first.

Ref: lf-lang/benchmarks-lingua-franca#5

@jhaye jhaye added the rust Related to the Rust target label Apr 14, 2022
@jhaye jhaye changed the title Rust clap fix Support inline code arguments on main reactor for Rust target Apr 14, 2022
@cmnrd cmnrd self-assigned this Apr 19, 2022
@cmnrd cmnrd marked this pull request as draft April 19, 2022 12:29
Copy link
Collaborator

@cmnrd cmnrd left a comment

Choose a reason for hiding this comment

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

Cool! I converted this to draft and will merge this as soon as we have merged #1098.

@cmnrd cmnrd marked this pull request as ready for review April 27, 2022 15:43
Copy link
Collaborator

@cmnrd cmnrd left a comment

Choose a reason for hiding this comment

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

I think this needs to be rebased to the new master. It seems to still include some changes from #1098.

Also, could you add a test for this added functionality (or extend an existing test)?

@jhaye
Copy link
Collaborator Author

jhaye commented Apr 28, 2022

I added a test, but not sure if it's automatically added to the bulk test run.

@jhaye jhaye requested a review from cmnrd April 28, 2022 09:38
Copy link
Collaborator

@cmnrd cmnrd left a comment

Choose a reason for hiding this comment

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

Yes, all the lf files in the test directories are run automagically. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Related to the Rust target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants