2026-05-25 16:56:54 +02:00
.PHONY : clippy clippy -guest clippy -all test fmt idl
2026-05-21 10:23:59 +02:00
clippy :
RISC0_SKIP_BUILD = 1 cargo clippy --workspace --all-targets -- -D warnings
clippy-guest :
2026-05-25 16:56:54 +02:00
for manifest in token/methods/guest/Cargo.toml amm/methods/guest/Cargo.toml ata/methods/guest/Cargo.toml stablecoin/methods/guest/Cargo.toml twap_oracle/methods/guest/Cargo.toml; do \
2026-05-21 10:23:59 +02:00
cargo clippy --manifest-path " $$ manifest " --all-targets -- -D warnings || exit 1; \
done
clippy-all : clippy clippy -guest
test :
RISC0_DEV_MODE = 1 cargo test --workspace
fmt :
cargo +nightly fmt --all
2026-05-25 16:56:54 +02:00
idl :
for program in token amm ata stablecoin twap_oracle; do \
cargo run -p idl-gen -- " $$ program/methods/guest/src/bin/ $$ program.rs " > " artifacts/ $$ program-idl.json " || exit 1; \
done