-
Notifications
You must be signed in to change notification settings - Fork 157
v3/address: Re-export v2 #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
joncinque
left a comment
There was a problem hiding this 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
Yeah, we need to specify a version for duplicated crates. Fixed here: 3e33e4f |
joncinque
left a comment
There was a problem hiding this 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"] |
There was a problem hiding this comment.
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.
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
Problem
There was a major version of
solana-addresssince a"copy"feature was created. Although the type between the versions has not changed, the major bump makesAddressto be considered different.Solution
Follow the semver trick and re-export the v2 type on v1, so they will be considered the same type.