Skip to content

Conversation

@vlady-kotsev
Copy link

Summary

Enhanced CLI with build andidl generation commands for Solana programs to streamline development workflow.

Changes

  • CLI Enhancement: Added build command that wraps cargo build-sbf for Solana program compilation
  • IDL Generation: Added idl command that runs IDL generation tests with proper feature flags
  • Removed (now)redundant IDL generation test from counter template
  • Added #![allow(unexpected_cfgs)] to lib template
  • Proc Macro: Enhanced program macro to auto-generate IDL test functions with proper cfg constraints

@graphite-app graphite-app bot requested a review from stegaBOB November 17, 2025 12:49
@graphite-app
Copy link

graphite-app bot commented Nov 17, 2025

Graphite Automations

"Star Frame: Request reviewers" took an action on this PR • (11/17/25)

1 reviewer was added to this PR based on Brett Etter's automation.

@vlady-kotsev
Copy link
Author

Hey @stegaBOB, do you have any comments/requests ?

@stegaBOB
Copy link
Member

Hey @vlady-kotsev sorry for the delay. Really love this idea! It's something we had been planning on doing for a while. At the moment it feels a bit fragile with executing cargo tests (been trying to think of some other way to make that work), and ideally the output file/directory could be configurable. I'm going to think about this a bit more and I'll try to get back to you by end of this week (been super busy lately with Anza events and thanksgiving coming up!).

I think we probably don't want a build command at the moment. I don't see a benefit over just using the normal cargo build-sbf scripts.

@vlady-kotsev
Copy link
Author

Ok, if you decide we gonna go that way, I can add configurable output file/directory. About the build, I've wrapped cargo build-sbf to have similar api for devs coming from anchor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants