Skip to content

Commit

Permalink
Upgrade ABI version (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamcx authored and cloutiertyler committed Aug 1, 2023
1 parent cf9803e commit c405cf8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bindings-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use alloc::boxed::Box;
/// can run a module declaring `X.Y` if and only if `X == A && Y <= B`.
/// So, the minor version is intended for backwards-compatible changes, e.g. adding a new function,
/// and the major version is for fully breaking changes.
pub const ABI_VERSION: u32 = 0x0002_0000;
pub const ABI_VERSION: u32 = 0x0003_0000;

/// Provides a raw set of sys calls which abstractions can be built atop of.
pub mod raw {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/host/wasmer/wasmer_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl WasmerModule {
WasmerModule { module, engine }
}

pub const IMPLEMENTED_ABI: abi::VersionTuple = abi::VersionTuple::new(2, 0);
pub const IMPLEMENTED_ABI: abi::VersionTuple = abi::VersionTuple::new(3, 0);

fn imports(&self, store: &mut Store, env: &FunctionEnv<WasmInstanceEnv>) -> Imports {
const _: () = assert!(WasmerModule::IMPLEMENTED_ABI.eq(spacetimedb_lib::MODULE_ABI_VERSION));
Expand Down
2 changes: 1 addition & 1 deletion crates/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub use type_value::{AlgebraicValue, ProductValue};

pub use spacetimedb_sats as sats;

pub const MODULE_ABI_VERSION: VersionTuple = VersionTuple::new(2, 0);
pub const MODULE_ABI_VERSION: VersionTuple = VersionTuple::new(3, 0);

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

0 comments on commit c405cf8

Please sign in to comment.