Skip to content

Commit b6b0591

Browse files
authored
Merge pull request #2250 from CosmWasm/aw/cacher-hasher
Automatically derive a cache descriminator from the wasmer version and selected functions
2 parents cf413c5 + 74089c7 commit b6b0591

File tree

23 files changed

+1170
-339
lines changed

23 files changed

+1170
-339
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ workflows:
7070
- package_schema_derive
7171
- package_std
7272
- package_vm
73+
- package_vm_derive
7374
- package_vm_windows
7475
- contract_burner
7576
- contract_crypto_verify
@@ -493,6 +494,34 @@ jobs:
493494
- target/debug/deps
494495
key: cargocache-v2-package_vm-rust:1.74-{{ checksum "Cargo.lock" }}
495496

497+
package_vm_derive:
498+
docker:
499+
- image: rust:1.74
500+
steps:
501+
- checkout
502+
- run:
503+
name: Version information
504+
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
505+
- restore_cache:
506+
keys:
507+
- cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}
508+
- run:
509+
name: Build
510+
working_directory: ~/project/packages/vm-derive
511+
command: cargo build --locked
512+
- run:
513+
name: Test
514+
working_directory: ~/project/packages/vm-derive
515+
command: cargo test --locked
516+
517+
- save_cache:
518+
paths:
519+
- /usr/local/cargo/registry
520+
- target/debug/.fingerprint
521+
- target/debug/build
522+
- target/debug/deps
523+
key: cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}
524+
496525
package_vm_windows:
497526
executor:
498527
name: win/default

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ and this project adheres to
5757
- cosmwasm-vm: Effectively remove the `cranelift` feature. It still exists but
5858
is only a no-op for semver compatibility. It will now unconditionally use the
5959
singlepass compiler. ([#2260])
60+
- cosmwasm-vm: Automatically derive cache version from function hashes and the
61+
Wasmer version ([#2250])
6062

6163
[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
6264
[#2211]: https://github.com/CosmWasm/cosmwasm/issues/2211
6365
[#2246]: https://github.com/CosmWasm/cosmwasm/pull/2246
6466
[#2247]: https://github.com/CosmWasm/cosmwasm/pull/2247
6567
[#2255]: https://github.com/CosmWasm/cosmwasm/pull/2255
6668
[#2260]: https://github.com/CosmWasm/cosmwasm/pull/2260
69+
[#2250]: https://github.com/CosmWasm/cosmwasm/pull/2250
6770

6871
## [2.1.3] - 2024-08-08
6972

Cargo.lock

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

0 commit comments

Comments
 (0)