-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (55 loc) · 1.54 KB
/
Copy pathMakefile
File metadata and controls
71 lines (55 loc) · 1.54 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
RUST_TOOLCHAIN_NIGHTLY = nightly-2026-01-22
SOLANA_CLI_VERSION = v4.1.2
SBF_ARCH = v3
nightly = +${RUST_TOOLCHAIN_NIGHTLY}
make-path = $1
rust-toolchain-nightly:
@echo ${RUST_TOOLCHAIN_NIGHTLY}
solana-cli-version:
@echo ${SOLANA_CLI_VERSION}
audit:
cargo audit $(ARGS)
spellcheck:
cargo spellcheck --code 1 $(ARGS)
clippy-%:
cargo $(nightly) clippy --manifest-path $(call make-path,$*)/Cargo.toml \
--all-targets \
--all-features \
-- \
--deny=warnings $(ARGS)
format-check-%:
cargo $(nightly) fmt --check --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)
powerset-%:
cargo $(nightly) hack check \
--feature-powerset \
--all-targets \
--manifest-path $(call make-path,$*)/Cargo.toml \
$(ARGS)
build-doc-%:
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo $(nightly) doc \
--all-features \
--no-deps \
--manifest-path $(call make-path,$*)/Cargo.toml \
$(ARGS)
build-sbf-%:
cargo build-sbf --arch $(SBF_ARCH) --manifest-path $(call make-path,$*)/Cargo.toml -- --locked $(ARGS)
test-%:
SBF_OUT_DIR=$(PWD)/target/deploy cargo test \
--locked \
--manifest-path $(call make-path,$*)/Cargo.toml \
$(ARGS)
cu-program: build-sbf-program
SBF_OUT_DIR=$(PWD)/target/deploy cargo test \
--locked \
--manifest-path program/Cargo.toml \
--test mollusk \
-- --nocapture
build-sbf-ed25519: build-sbf-program
build-doc-ed25519: build-doc-program
clippy-ed25519: clippy-program
cu-ed25519: cu-program
format-check-ed25519: format-check-program
powerset-ed25519: powerset-program
test-ed25519: test-program
generate-clients:
exit 0