Compile a Contract
How to Compile CosmWasm Smart Contracts
Single Contract Repository
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.11
# If you you use an ARM machine (Ex: Mac M1), you need to use the following
# This is experimental and should not be used for production use
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer-arm64:0.12.11Multiple Contract Repository (Mono Repo)
Last updated
Was this helpful?