Skip to content

Commit

Permalink
feat: no entrypoint feature
Browse files Browse the repository at this point in the history
  • Loading branch information
RequescoS committed Jul 31, 2024
1 parent 2146377 commit 201756f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions programs/mpl-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ mpl-utils = "0.3.5"
spl-noop = { version = "0.2.0", features = ["cpi"] }
podded = "0.5.1"
strum = { version = "0.26.1", features = ["derive"] }

[features]
no-entypoint = []
8 changes: 6 additions & 2 deletions programs/mpl-core/src/entrypoint.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult,
program_error::PrintProgramError, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, program_error::PrintProgramError,
pubkey::Pubkey,
};

use crate::{error::MplCoreError, processor};

#[cfg(not(feature = "no-entrypoint"))]
use solana_program::entrypoint;

#[cfg(not(feature = "no-entrypoint"))]
entrypoint!(process_instruction);

/// Entrypoint function
Expand Down

0 comments on commit 201756f

Please sign in to comment.