Skip to content

Commit

Permalink
near-vm: update rkyv to 0.8 (#12504)
Browse files Browse the repository at this point in the history
This patch is best accompaned with the following short presentation
https://www.youtube.com/watch?v=ON4z2LbTD-4. For the most part the
structure does not change significantly, but there is quite a bit more
confidence, that the right thing is being done. The executables might
even be portable between machines or neard builds now!
  • Loading branch information
nagisa authored Dec 6, 2024
1 parent c151baa commit 823dc6e
Show file tree
Hide file tree
Showing 24 changed files with 299 additions and 303 deletions.
180 changes: 154 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ regex = "1.7.1"
region = "3.0"
reqwest = { version = "0.11.14", features = ["blocking"] }
ripemd = "0.1.1"
rkyv = "0.7.31"
rkyv = "0.8.0"
rlimit = "0.7"
rlp = "0.5.2"
rocksdb = { version = "0.21.0", default-features = false, features = [
Expand Down
6 changes: 4 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ skip = [
# old version used by wasmer et al
{ name = "dynasm", version = "=1.2.3" },
{ name = "dynasmrt", version = "=1.2.3" },
{ name = "rkyv", version = "^0.7" },
{ name = "rkyv_derive", version = "^0.7" },
{ name = "ptr_meta", version = "^0.1" },
{ name = "ptr_meta_derive", version = "^0.1" },

# wasmer and wasmtime
{ name = "target-lexicon", version = "=0.10.0" },
Expand All @@ -69,8 +73,6 @@ skip = [
{ name = "parking_lot_core", version = "=0.7.2" },
{ name = "lock_api", version = "=0.3.4" },
{ name = "digest", version = "=0.8.1" },

# wasmer 0.18
{ name = "nix", version = "=0.15.0" },

# many crates haven't updated to syn 2.0 yet.
Expand Down
2 changes: 1 addition & 1 deletion runtime/near-vm-runner/src/near_vm_runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ enum NearVmCompiler {
// major version << 6
// minor version
const VM_CONFIG: NearVmConfig = NearVmConfig {
seed: (2 << 29) | (2 << 6) | 3,
seed: (2 << 29) | (2 << 6) | 4,
engine: NearVmEngine::Universal,
compiler: NearVmCompiler::Singlepass,
};
Expand Down
Loading

0 comments on commit 823dc6e

Please sign in to comment.