-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (26 loc) · 895 Bytes
/
justfile
File metadata and controls
33 lines (26 loc) · 895 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
27
28
29
30
31
32
33
toml-format:
@echo "Formatting TOML files..."
taplo format .
fmt:
@echo "Formatting Rust code..."
cargo fmt --all
# Lint with clippy
lint:
@echo "Linting with clippy..."
cargo clippy --all-targets --all-features -- -D warnings
lint-asset:
@echo "Linting asset with clippy..."
cargo clippy -p asset --all-targets --all-features --fix --no-deps -- -D warnings
# Lint marketplace package only
lint-marketplace:
@echo "Linting marketplace with clippy..."
cargo clippy -p xion-nft-marketplace --all-targets --all-features --no-deps -- -D warnings
# Run tests
test:
@echo "Running tests..."
cargo test --all
optimize:
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.17.0