-
Notifications
You must be signed in to change notification settings - Fork 22
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
Hax-lib[-macros]: cfg(hax)
, cfg(debug_assert)
and release mode policy
#639
Comments
Putting this into separate crates requires publishing both, hence more complexity. |
This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days. |
Still needed |
I´'ve been looking at that the last two hours or so:
|
hax-lib and hax-lib-macros provide hax-related features that are relevant only when extracting though hax (and maybe in some scenarios in debug mode, but this is not entirely clear yet)
The constraint here is production code. When we introduce a dependency to hax-lib in production code, we want (if not
cfg(hax)
):hax-lib
should be no-ops.Solution: add a dummy
hax-lib-dummy
crate that is an empty shell, providing the same interface tohax-lib
, but with macros being no-ops. Thenhax-lib
, with acfg
, either includes the real library or the dummy one.Actions:
hax-lib
intohax-lib-impl
, move it inside a brand newhax-lib
cratehax-lib-dummy
cratehax-lib
expose either the dummy one or the lib onerefinement_type
macroNote: some work exists in
wip-toward-639
The text was updated successfully, but these errors were encountered: