You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// and [wasmvm 0.16.3](https://github.com/CosmWasm/wasmvm/blob/v0.16.3/libwasmvm/Cargo.lock#L1408-L1409).
37
+
/// Versions that ship with Wasmer 2.1.x such [as wasmvm 1.0.0-beta3](https://github.com/CosmWasm/wasmvm/blob/v1.0.0-beta3/libwasmvm/Cargo.lock#L1534-L1535)
38
+
/// to [wasmvm 1.0.0-beta5](https://github.com/CosmWasm/wasmvm/blob/v1.0.0-beta5/libwasmvm/Cargo.lock#L1530-L1531)
39
+
/// are broken, i.e. they will crash when reading older v1 modules.
40
+
/// - **v2**:<br>
41
+
/// Version for cosmwasm_vm 1.0.0-beta5 / wasmvm 1.0.0-beta6 that ships with Wasmer 2.1.1.
42
+
/// - **v3**:<br>
43
+
/// Version for Wasmer 2.2.0 which contains a [module breaking change to 2.1.x](https://github.com/wasmerio/wasmer/pull/2747).
44
+
/// - **v4**:<br>
45
+
/// Version for Wasmer 2.3.0 which contains a module breaking change to 2.2.0 that was not reflected in
46
+
/// the module header version (<https://github.com/wasmerio/wasmer/issues/3193>). In cosmwasm-vm 1.1.0-1.1.1
47
+
/// the old value "v3" is still used along with Wasmer 2.3.0 (bug). From cosmwasm 1.1.2 onwards, this is
48
+
/// fixed by bumping to "v4".
49
+
/// - **v5**:<br>
50
+
/// A change in memory layout of some types in Rust [std] caused
51
+
/// [issues with module deserialization](https://github.com/CosmWasm/wasmvm/issues/426).
52
+
/// To work around this, the version was bumped to "v5" here to invalidate these corrupt caches.
53
+
/// - **v6**:<br>
54
+
/// Version for cosmwasm_vm 1.3+ which adds a sub-folder with the target identier for the modules.
55
+
/// - **v7**:<br>
56
+
/// New version because of Wasmer 2.3.0 -> 4 upgrade.
57
+
/// This internally changes how rkyv is used for module serialization, making compatibility unlikely.
58
+
/// - **v8**:<br>
59
+
/// New version because of Wasmer 4.1.2 -> 4.2.2 upgrade.
60
+
/// Module compatibility between Wasmer versions is not guaranteed.
61
+
/// - **v9**:<br>
62
+
/// New version because of Wasmer 4.2.2 -> 4.2.6 upgrade.
63
+
/// Module compatibility between Wasmer versions is not guaranteed.
64
+
/// - **v10**:<br>
65
+
/// New version because of Metering middleware change.
66
+
constMODULE_SERIALIZATION_VERSION:&str = "v10";
67
+
23
68
/// Function that actually does the heavy lifting of creating the module version discriminator.
24
69
///
25
70
/// Separated for sanity tests because otherwise the `OnceLock` would cache the result.
0 commit comments