Skip to content

Commit

Permalink
Merge pull request #2250 from CosmWasm/aw/cacher-hasher
Browse files Browse the repository at this point in the history
Automatically derive a cache descriminator from the wasmer version and selected functions
  • Loading branch information
aumetra authored Sep 30, 2024
2 parents cf413c5 + 74089c7 commit b6b0591
Show file tree
Hide file tree
Showing 23 changed files with 1,170 additions and 339 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ workflows:
- package_schema_derive
- package_std
- package_vm
- package_vm_derive
- package_vm_windows
- contract_burner
- contract_crypto_verify
Expand Down Expand Up @@ -493,6 +494,34 @@ jobs:
- target/debug/deps
key: cargocache-v2-package_vm-rust:1.74-{{ checksum "Cargo.lock" }}

package_vm_derive:
docker:
- image: rust:1.74
steps:
- checkout
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}
- run:
name: Build
working_directory: ~/project/packages/vm-derive
command: cargo build --locked
- run:
name: Test
working_directory: ~/project/packages/vm-derive
command: cargo test --locked

- save_cache:
paths:
- /usr/local/cargo/registry
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}

package_vm_windows:
executor:
name: win/default
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ and this project adheres to
- cosmwasm-vm: Effectively remove the `cranelift` feature. It still exists but
is only a no-op for semver compatibility. It will now unconditionally use the
singlepass compiler. ([#2260])
- cosmwasm-vm: Automatically derive cache version from function hashes and the
Wasmer version ([#2250])

[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
[#2211]: https://github.com/CosmWasm/cosmwasm/issues/2211
[#2246]: https://github.com/CosmWasm/cosmwasm/pull/2246
[#2247]: https://github.com/CosmWasm/cosmwasm/pull/2247
[#2255]: https://github.com/CosmWasm/cosmwasm/pull/2255
[#2260]: https://github.com/CosmWasm/cosmwasm/pull/2260
[#2250]: https://github.com/CosmWasm/cosmwasm/pull/2250

## [2.1.3] - 2024-08-08

Expand Down
104 changes: 78 additions & 26 deletions Cargo.lock

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

Loading

0 comments on commit b6b0591

Please sign in to comment.