-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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)?
I added a test, but not sure if it's automatically added to the bulk test run. |
There was a problem hiding this 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!
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