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

Clean up cfg related parts #71

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Clean up cfg related parts #71

merged 2 commits into from
Jun 26, 2024

Conversation

gabhijit
Copy link
Collaborator

No description provided.

In a number of places we were using `cfg(not(...))` or `cfg(all(...))`
like code, which was not required. The features `python-bindings` and
`wasm` are mutually exclusive and that is checked once already, at all
other places those checks made this look ugly.

Signed-off-by: Abhijit Gadgil <gabhijit@iitbombay.org>
Defined two macros `cfg_python!` and `cfg_wasm!` to wrap items within
feature specific blocks. Looks a lot cleaner

Signed-off-by: Abhijit Gadgil <gabhijit@iitbombay.org>
@gabhijit gabhijit merged commit edfe18b into master Jun 26, 2024
13 checks passed
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.

1 participant