Skip to content

Commit 88911e2

Browse files
mamcxcloutiertyler
authored andcommitted
Upgrade ABI version (#56)
1 parent 720f513 commit 88911e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/bindings-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use alloc::boxed::Box;
3434
/// can run a module declaring `X.Y` if and only if `X == A && Y <= B`.
3535
/// So, the minor version is intended for backwards-compatible changes, e.g. adding a new function,
3636
/// and the major version is for fully breaking changes.
37-
pub const ABI_VERSION: u32 = 0x0002_0000;
37+
pub const ABI_VERSION: u32 = 0x0003_0000;
3838

3939
/// Provides a raw set of sys calls which abstractions can be built atop of.
4040
pub mod raw {

crates/core/src/host/wasmer/wasmer_module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl WasmerModule {
4949
WasmerModule { module, engine }
5050
}
5151

52-
pub const IMPLEMENTED_ABI: abi::VersionTuple = abi::VersionTuple::new(2, 0);
52+
pub const IMPLEMENTED_ABI: abi::VersionTuple = abi::VersionTuple::new(3, 0);
5353

5454
fn imports(&self, store: &mut Store, env: &FunctionEnv<WasmInstanceEnv>) -> Imports {
5555
const _: () = assert!(WasmerModule::IMPLEMENTED_ABI.eq(spacetimedb_lib::MODULE_ABI_VERSION));

crates/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub use type_value::{AlgebraicValue, ProductValue};
3838

3939
pub use spacetimedb_sats as sats;
4040

41-
pub const MODULE_ABI_VERSION: VersionTuple = VersionTuple::new(2, 0);
41+
pub const MODULE_ABI_VERSION: VersionTuple = VersionTuple::new(3, 0);
4242

4343
// if it ends up we need more fields in the future, we can split one of them in two
4444
#[derive(PartialEq, Eq, Copy, Clone, Debug)]

0 commit comments

Comments
 (0)