Skip to content

Conversation

@joncinque
Copy link
Collaborator

Problem

The pubkey crate doesn't compile for no-std environments because the atomic feature is always enabled on address.

This is an alternative to #302.

Summary of changes

Add the "atomic" feature to the "std" feature in pubkey, and enable "std" as appropriate for certain tests.

We could do the same with "decode", but since it isn't required, I'm inclined to make a minimal change. People can switch to address for more control.

#### Problem

The pubkey crate doesn't compile for no-std environments because the
atomic feature is always enabled on address.

This is an alternative to anza-xyz#302.

#### Summary of changes

Add the "atomic" feature to the "std" feature in pubkey, and enable
"std" as appropriate for certain tests.

We could do the same with "decode", but since it isn't required, I'm
inclined to make a minimal change. People can switch to address for more
control.
@joncinque joncinque requested review from febo and vadorovsky October 17, 2025 21:24
@joncinque joncinque added the breaking PR contains breaking changes label Oct 17, 2025
Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

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

Looks great!

Copy link
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

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

Awesome, much cleaner than my solution!

@joncinque joncinque merged commit a7e12b1 into anza-xyz:master Oct 20, 2025
26 checks passed
@joncinque joncinque deleted the no-std-pubkey branch October 20, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking PR contains breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants