-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding versioning macros to the C API? #5635
Labels
wasmtime:c-api
Issues pertaining to the C API.
Comments
Seems reasonable to me to add! One thing to watch out for though is that we'll want support in https://github.com/bytecodealliance/wasmtime/blob/main/scripts/publish.rs to have that script update these version numbers along with other version numbers. |
thibaultcha
added a commit
to thibaultcha/wasmtime
that referenced
this issue
Jan 29, 2023
* Add several `WASMTIME_VERSION_*` macros to `wasmtime.h`. * Update `scripts/publish.rs` * To set these macros as per the new version in `./Cargo.toml` during `./publish bump`. * To verify the macros match the version in `./Cargo.toml` during `./publish verify`. Fix bytecodealliance#5635
thibaultcha
added a commit
to thibaultcha/wasmtime
that referenced
this issue
Jan 29, 2023
* Add several `WASMTIME_VERSION_*` macros to `wasmtime.h`. * Update `scripts/publish.rs` * To set these macros as per the new version in `./Cargo.toml` during `./publish bump`. * To verify the macros match the version in `./Cargo.toml` during `./publish verify`. Fix bytecodealliance#5635
alexcrichton
pushed a commit
that referenced
this issue
Jan 30, 2023
* Add several `WASMTIME_VERSION_*` macros to `wasmtime.h`. * Update `scripts/publish.rs` * To set these macros as per the new version in `./Cargo.toml` during `./publish bump`. * To verify the macros match the version in `./Cargo.toml` during `./publish verify`. Fix #5635
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature
Could we add versioning macros to the C API in
wasmtime.h
?Benefit
As our embedder program can be linked against several Wasm runtimes, we wish to add compilation guards ensuring the version of these runtimes is either tested or compatible with the targets chosen by our users; without them having to face numerous compilation errors or more obscure behavior when it is not the case.
E.g.
Implementation
E.g.
Alternatives
N/A
The text was updated successfully, but these errors were encountered: