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

remove wasmedge-sys dependency #383

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

jprendes
Copy link
Collaborator

@jprendes jprendes commented Nov 1, 2023

This PR removes the dependency on wasmedge-sys.

This depdency was only used to test that a symbol is statically / dinamically linked in the binary.
This PR inlines the FFI symbol instead of using the crate dependency.

The risk of depending on wasmedge-sys is that the version could drifts from what wasmedge-sdk uses.
In that case, the test would be probing the wrong symbol, and it may silenly succeed when it should fail.

The selected symbol for the probe is expected to remain unchaged across different versions of wasmedge.
If it ever changes, then compilation should fail, indicating that the symbol needs to be updated.

Signed-off-by: Jorge Prendes <[email protected]>
Copy link
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@Mossaka Mossaka merged commit 425ed99 into containerd:main Nov 1, 2023
43 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.

2 participants