Skip to content

Commit 214dc40

Browse files
committed
Remove manual reading of wasmer version
1 parent 4dc02fb commit 214dc40

File tree

5 files changed

+1
-61
lines changed

5 files changed

+1
-61
lines changed

Cargo.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/vm-derive-impl/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ proc-macro = true
88

99
[dependencies]
1010
blake3 = "1.5.4"
11-
cargo-manifest = "0.15.2"
1211
proc-macro2 = "1.0.86"
1312
quote = "1.0.37"
1413
syn = { version = "2.0.77", features = ["extra-traits", "full"] }

packages/vm-derive-impl/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod hash_function;
2-
mod read_wasmer_version;
32

43
macro_rules! bail {
54
($span:ident, $message:literal) => {{
@@ -24,11 +23,6 @@ macro_rules! maybe {
2423
}
2524
use {bail, maybe};
2625

27-
#[proc_macro]
28-
pub fn read_wasmer_version(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
29-
read_wasmer_version::read_wasmer_version_impl(input.into()).into()
30-
}
31-
3226
/// Submit the hash of the function to a global inventory
3327
///
3428
/// These hashes affect whether the Wasm cache is regenerated or not

packages/vm-derive-impl/src/read_wasmer_version.rs

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/vm/src/modules/file_system_cache.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use cosmwasm_vm_derive::read_wasmer_version;
21
use std::fs;
32
use std::hash::Hash;
43
use std::io;
@@ -70,13 +69,12 @@ const MODULE_SERIALIZATION_VERSION: &str = "v10";
7069
/// Separated for sanity tests because otherwise the `OnceLock` would cache the result.
7170
#[inline]
7271
fn raw_module_version_discriminator() -> String {
73-
let wasmer_version = read_wasmer_version!();
7472
let hashes = cosmwasm_vm_derive::collect_hashes();
7573

7674
let mut hasher = blake3::Hasher::new();
7775

7876
hasher.update(MODULE_SERIALIZATION_VERSION.as_bytes());
79-
hasher.update(wasmer_version.as_bytes());
77+
hasher.update(wasmer::VERSION.as_bytes());
8078

8179
for hash in hashes {
8280
hasher.update(hash.as_bytes());

0 commit comments

Comments
 (0)