You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C code is a total blackbox from the Rust point of view.
I see 2 solutions to not violate this blackbox feature:
Use environment variables to pass values from Rust to C,
Pass values onto C's main function.
Whatever we go for, the values are going to be pretty simple, like integers, floats, strings, maybe booleans (but those don't exist in C), but probably not more, or not without difficulties and for sure unvoluntary edge cases.
Pushing it further would be even better to have the run() machinery exposed, then I could keep the C code available for the users and just include!() it so it would be fed to the test runner.
This would make much simpler to pass arguments to tests.
The text was updated successfully, but these errors were encountered: