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

removed redundant features from mlua #26

Merged
merged 1 commit into from Sep 15, 2022
Merged

removed redundant features from mlua #26

merged 1 commit into from Sep 15, 2022

Conversation

lenscas
Copy link
Contributor

@lenscas lenscas commented Sep 15, 2022

Tealr already passes the features to mlua. No need to set them again in mlua.

Some features from mlua (actually, most of them) break its API in some way that tealr needs to know about. As a result, I highly recommend to not enable any features in mlua directly but instead enable their equivalent in tealr. Doing this enables them in mlua (including in the mlua you depend directly on) and makes it harder to accidentally enable a feature only in mlua, which can cause compile errors.

Ideally, you don't depend on mlua directly and instead use the reexport under tealr::mlu::mlua to side step this entire problem but I also agree that depending on mlua directly is nicer if its used a lot and it isn't a problem for as long as you keep the feature thing in mind.

Tealr already passes the features to mlua. No need to set them again in mlua. 

Some features from mlua (actually, most of them) break its API in some way that tealr needs to know about. As a result, I _highly_ recommend to not enable any features in mlua directly but instead enable their equivalent in tealr. Doing this enables them in mlua (including in the mlua you depend directly on) and makes it harder to accidentally enable a feature only in mlua, which can cause compile errors.

Ideally, you don't depend on mlua directly and instead use the reexport under `tealr::mlu::mlua` to side step this entire problem but I also agree that depending on mlua directly is nicer if its used a lot and it isn't a problem for as long as you keep the feature thing in mind.
@knassar702
Copy link
Contributor

Hey @lenscas, thanks for this I'll merge it now

best regards
@knassar702

@knassar702 knassar702 merged commit 829e770 into BugBlocker:master Sep 15, 2022
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.

None yet

2 participants