In native Rust programs, the `entrypoint!` macro defines the single function invoked by the SBF runtime: `process_instruction(program_id, accounts, instruction_data)`.
rust
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};
entrypoint!(process_instruction);
pub fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> ProgramResult {
// Manual dispatch logic
Ok(())
}