Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Nov 5, 2025

Problem

There was a major version of solana-address since a "copy" feature was created. Although the type between the versions has not changed, the major bump makes Address to be considered different.

Solution

Follow the semver trick and re-export the v2 type on v1, so they will be considered the same type.

@febo febo changed the title v3: address: Re-export v2 v3/address: Re-export v2 Nov 5, 2025
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.

Just a fly-by, but I looked through and everything looks good to me. Looks like there's just a small fix required for the no-std build script

@febo
Copy link
Contributor Author

febo commented Nov 5, 2025

Just a fly-by, but I looked through and everything looks good to me. Looks like there's just a small fix required for the no-std build script

Yeah, we need to specify a version for duplicated crates. Fixed here: 3e33e4f

@febo febo marked this pull request as ready for review November 5, 2025 22:42
joncinque
joncinque previously approved these changes Nov 5, 2025
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 to me!

alloc = []
syscalls = ["dep:solana-define-syscall", "error"]
atomic = ["solana-address-v2/atomic"]
borsh = ["solana-address-v2/borsh", "alloc"]
Copy link
Contributor Author

@febo febo Nov 6, 2025

Choose a reason for hiding this comment

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

@joncinque Added reference to other features so the powerset generated is smaller – looks redundant but reduces the number of combinations from 33k+ to ~3k. Without this, CI was running for more than 1 hour evaluating feature combinations and still had more combinations to test.

@febo febo requested a review from joncinque November 6, 2025 02:09
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.

Makes sense!

@febo febo merged commit 324dfe8 into anza-xyz:maintenance/v3.x Nov 6, 2025
26 checks passed
@febo febo deleted the address-semver branch November 6, 2025 11:30
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