From cfa4bb1e3676111c3db1708e9bfadee150a228b4 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 21 May 2026 18:04:48 +0200 Subject: [PATCH] chore: include stablecoin program in clippy task --- Makefile | 2 +- stablecoin/methods/guest/src/bin/stablecoin.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5dbb110..01034df 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ clippy: RISC0_SKIP_BUILD=1 cargo clippy --workspace --all-targets -- -D warnings clippy-guest: - for manifest in token/methods/guest/Cargo.toml amm/methods/guest/Cargo.toml ata/methods/guest/Cargo.toml; do \ + for manifest in token/methods/guest/Cargo.toml amm/methods/guest/Cargo.toml ata/methods/guest/Cargo.toml stablecoin/methods/guest/Cargo.toml; do \ cargo clippy --manifest-path "$$manifest" --all-targets -- -D warnings || exit 1; \ done diff --git a/stablecoin/methods/guest/src/bin/stablecoin.rs b/stablecoin/methods/guest/src/bin/stablecoin.rs index d9ff26e..57cd3fa 100644 --- a/stablecoin/methods/guest/src/bin/stablecoin.rs +++ b/stablecoin/methods/guest/src/bin/stablecoin.rs @@ -1,9 +1,10 @@ -#![no_main] +#![cfg_attr(not(test), no_main)] use nssa_core::account::AccountWithMetadata; use spel_framework::context::ProgramContext; use spel_framework::prelude::*; +#[cfg(not(test))] risc0_zkvm::guest::entry!(main); #[lez_program(instruction = "stablecoin_core::Instruction")]