forked from stellar/rs-soroban-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (38 loc) · 1.43 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
all: check test
export RUSTFLAGS=-Dwarnings
CARGO_DOC_ARGS?=--open
doc: fmt
cargo test --doc -p soroban-sdk -p soroban-sdk-macros --features testutils
# TODO: Upgrade to latest nightly after problem that was introduced in nightly-2024-02-05 (https://github.com/dalek-cryptography/curve25519-dalek/issues/618) is resolved.
cargo +nightly doc -p soroban-sdk --no-deps --features docs,testutils $(CARGO_DOC_ARGS)
test: fmt build
cargo hack --feature-powerset --ignore-unknown-features --features testutils --exclude-features docs test
build: fmt
cargo hack build --target wasm32-unknown-unknown --release
cd target/wasm32-unknown-unknown/release/ && \
for i in *.wasm ; do \
ls -l "$$i"; \
done
check: build fmt
cargo hack --feature-powerset --exclude-features docs check
cargo hack check --release --target wasm32-unknown-unknown
build-fuzz:
cd tests/fuzz/fuzz && cargo +nightly fuzz check
readme:
cd soroban-sdk \
&& cargo +nightly rustdoc -- -Zunstable-options -wjson \
&& cat ../target/doc/soroban_sdk.json \
| jq -r '.index[.root].docs' \
> README.md
watch:
cargo watch --clear --watch-when-idle --shell '$(MAKE)'
watch-doc:
cargo +nightly watch --clear --watch-when-idle --shell '$(MAKE) doc CARGO_DOC_ARGS='
fmt:
cargo fmt --all
clean:
cargo clean
bump-version:
cargo workspaces version --all --force '*' --no-git-commit --yes custom $(VERSION)
publish:
cargo workspaces publish --all --force '*' --from-git --yes