From 6da00d471986ecf038f8e18cac0d798640ba69a1 Mon Sep 17 00:00:00 2001 From: dafyddd Date: Fri, 30 Oct 2020 10:44:22 -0400 Subject: [PATCH] Added no entrypoint feature (#41) Co-authored-by: Dafydd Durairaj --- dex/Cargo.toml | 1 + dex/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/dex/Cargo.toml b/dex/Cargo.toml index d0c8aa3..ddc298c 100644 --- a/dex/Cargo.toml +++ b/dex/Cargo.toml @@ -13,6 +13,7 @@ client = ["solana-sdk/default", "spl-token/default"] fuzz = ["arbitrary", "solana-sdk/curve25519-dalek"] test = ["solana-sdk/default"] default = [] +no-entrypoint = [] [dependencies] solana-sdk = { version = "=1.3.14", default-features = false } diff --git a/dex/src/lib.rs b/dex/src/lib.rs index 63f5800..65f0951 100644 --- a/dex/src/lib.rs +++ b/dex/src/lib.rs @@ -18,6 +18,7 @@ use solana_sdk::{ }; #[cfg(feature = "program")] +#[cfg(not(feature = "no-entrypoint"))] entrypoint_deprecated!(process_instruction); #[cfg(feature = "program")] fn process_instruction(