It would be nice to have version/compatibility info available via a header when consuming the wasmtime library. I use such version defines to automatically tag the the binaries built (e.g. allows future security issues to be detected automatically).
E.g. look at ZLIB library header for useful info.
#define ZLIB_VERSION "1.2.11"
#define ZLIB_VERNUM 0x12b0
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 11
#define ZLIB_VER_SUBREVISION 0
I then consume info at compile time like this:
https://github.com/rene-fonseca/base/blob/9d478d34a6ac3b1661b781a97dd8c90610ae5428/base/compression/ZLibInflater.cpp#L65-L67