Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Sep 16, 2025

Problem

The Address type only includes a Debug impl when the feature "decode" is enabled, since it includes a base58 formatting. There are cases where it would be useful to have a "default" Debug derive without additional dependencies (e.g., Address integration on pinocchio).

Solution

Add a Debug derive for cases where the feature "decode" is not enabled.

@joncinque
Copy link
Collaborator

I was just thinking about this in the context of #302, and this seems like the easiest path forward.

We'll get some confusion if users are outputting pubkeys without the std feature on solana-pubkey, so we should document the change in behavior in the other PR.

What do you think @vadorovsky?

@febo febo requested a review from joncinque September 16, 2025 11:29
Copy link
Collaborator

@joncinque joncinque 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!

@febo febo merged commit bb5a3a3 into anza-xyz:master Sep 16, 2025
25 checks passed
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