浏览代码

lang: make `entry` function public (#1276)

suscd 3 年之前
父节点
当前提交
4c7cf72dd9
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      lang/syn/src/codegen/program/entry.rs

+ 0 - 1
lang/syn/src/codegen/program/entry.rs

@@ -51,7 +51,6 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
         ///
         /// The `entry` function here, defines the standard entry to a Solana
         /// program, where execution begins.
-        #[cfg(not(feature = "no-entrypoint"))]
         pub fn entry(program_id: &Pubkey, accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
             #[cfg(feature = "anchor-debug")]
             {