Added no entrypoint feature (#41)

Co-authored-by: Dafydd Durairaj <dafydd.durairaj@gmail.com>
This commit is contained in:
dafyddd 2020-10-30 10:44:22 -04:00 committed by GitHub
parent be3fb60bac
commit 6da00d4719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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 }

View File

@ -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(