forked from axelarnetwork/axelar-amplifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
26 lines (22 loc) · 957 Bytes
/
Copy pathjustfile
File metadata and controls
26 lines (22 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Project commands. Requires `just` to be installed.
# https://crates.io/crates/just
# Run rust optimizer for x86_64 architecture.
optimize:
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/optimizer:0.17.0
# Run rust optimizer for arm64 architecture. Not recommended for production.
optimize-arm64:
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/optimizer-arm64:0.17.0
# Run project checks.
check:
cargo clippy-check
cargo +nightly fmt-check
cargo sort-check
# Run migration remover for a specific contract.
remove-migration contract:
cargo run --bin migration-remover -- -c {{contract}}