Skip to content

idl: Support NonZero<num> in IDL#3984

Open
jamie-osec wants to merge 1 commit intosolana-foundation:masterfrom
jamie-osec:idl-nonzero
Open

idl: Support NonZero<num> in IDL#3984
jamie-osec wants to merge 1 commit intosolana-foundation:masterfrom
jamie-osec:idl-nonzero

Conversation

@jamie-osec
Copy link
Copy Markdown
Collaborator

@jamie-osec jamie-osec commented Oct 13, 2025

Closes #3940

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 13, 2025

@jamie-osec is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@Otter-0x4ka5h Otter-0x4ka5h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @jamie-osec, could you please run and fix the errors from code? also fix CI workflow tests

@jamie-osec
Copy link
Copy Markdown
Collaborator Author

I think I accidentally added partial changes from another PR 🤔 should be okay now

Copy link
Copy Markdown
Contributor

@Otter-0x4ka5h Otter-0x4ka5h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no function or associated item named insert_types found for struct std::num::NonZero in the current scope

the error is still raising! Did you tested on your side?

@jamie-osec
Copy link
Copy Markdown
Collaborator Author

How are you getting that error? I can build programs taking NonZero<u64> etc., and idl build works fine too

@clubby789 clubby789 force-pushed the idl-nonzero branch 2 times, most recently from dcd66b8 to ea73acc Compare November 13, 2025 00:07
@jamie-osec
Copy link
Copy Markdown
Collaborator Author

Updated to support NonZeroU8 etc. type aliases

Copy link
Copy Markdown
Contributor

@Otter-0x4ka5h Otter-0x4ka5h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm now. can you fix the CI tests, so we can add merge tag here.

@jamie-osec
Copy link
Copy Markdown
Collaborator Author

Needs implementing on the TS side

@jamie-osec jamie-osec force-pushed the idl-nonzero branch 2 times, most recently from ab70f3e to 84f6694 Compare November 13, 2025 16:54
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.

std::num::NonZero* IDL build is failed

3 participants