example-helloworld icon indicating copy to clipboard operation
example-helloworld copied to clipboard

Cargo `exclude_entrypoint` feature doesn't appear to be used correctly

Open 0xekez opened this issue 2 years ago • 0 comments

The Solana docs seem to suggest that an exclude-entrypoint feature should be provided which stops the entryponit! macro invocation from being run.

The Rust example program seems to have a different no-entrypoint feature that is unused. I figure that should probably be renamed to exclude-entrypoint and the entrypoint macro invocation should look something like this:

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

I'm happy to put up a PR for this if what I'm saying sounds reasonable.

0xekez avatar Oct 19 '21 18:10 0xekez