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

Add wasmer_version to the C-API #1534

Closed
syrusakbary opened this issue Aug 5, 2020 · 2 comments · Fixed by #1916
Closed

Add wasmer_version to the C-API #1534

syrusakbary opened this issue Aug 5, 2020 · 2 comments · Fixed by #1916
Assignees
Labels
1.0 Wasmer at 1.0 🎉 enhancement New feature! 📦 lib-c-api About wasmer-c-api

Comments

@syrusakbary
Copy link
Member

Add a wasmer_version function to Wasmer C API.
It will also help to do sanity checks.

int wasmer_version(void)

Other functions that could be useful:

  • wasmer_available_compilers
  • wasmer_available_engines
@syrusakbary syrusakbary transferred this issue from another repository Aug 14, 2020
@MarkMcCaskey MarkMcCaskey added 1.0 Wasmer at 1.0 🎉 enhancement New feature! 📦 lib-c-api About wasmer-c-api labels Sep 23, 2020
@MarkMcCaskey
Copy link
Contributor

Adding onto this issue, perhaps we want to use an enum for this purpose.

We should discuss the future of the C API and figure out what pieces are missing.

@syrusakbary
Copy link
Member Author

I think versions are normally always reported as strings, I think that's more convenient as enums.

But yeah, for compilers and engines enums is the right approach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Wasmer at 1.0 🎉 enhancement New feature! 📦 lib-c-api About wasmer-c-api
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants