Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
This is an abstraction layer around the wasmer VM to expose just what we need to run cosmwasm contracts in a high-level manner. This is intended both for efficient writing of unit tests, as well as a public API to run contracts in eg. go-cosmwasm. As such it includes all glue code needed for typical actions, like fs caching.
A VM can support one or more contract-VM interface versions. The interface version is communicated by the contract via a Wasm import. This is the current compatibility list:
|cosmwasm-vm||Supported interface versions||cosmwasm-std|
To rebuild the test contracts, go to the repo root and do
docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="devcontract_cache_hackatom",target=/code/contracts/hackatom/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ cosmwasm/rust-optimizer:0.10.5 ./contracts/hackatom \ && cp artifacts/hackatom.wasm packages/vm/testdata/contract_0.12.wasm
By default, this repository is built and tested with the singlepass backend. You
can enable the
cranelift feature to override the default backend with
cd packages/vm cargo test --features iterator cargo test --features cranelift,iterator
cd packages/vm cargo bench --no-default-features
cd packages/vm cargo bench --no-default-features --features cranelift