Check a Rune is compatible with the current runtime when it is loaded #336
Labels
area - runtime
The Rust Rune runtime
category - intuitiveness
Something which may be unintuitive to the user or affect ergonomics
effort - easy
This should be pretty simple
good first issue
Good for newcomers
At the moment, it's hard to make changes to the Rune-runtime interface because the Rune will fail to load due to obscure errors (e.g. an import function's signature is different or it wasn't provided).
The
rune build
command already embeds therune
CLI's version number in each Rune under the.rune_version
custom section.Now we just need to emit checks and emit a warning if the Rune's version isn't semver compatible with the runtime:
To make evolving things easier, I'd also like to not provide any backwards/forwards compatibility guarantee (cc @kthakore). At the moment, the C++ runtime forces us to be de facto backwards compatible, and it sucks.
The text was updated successfully, but these errors were encountered: