-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
cef655b
to
898598b
Compare
Clippy errors are unrelated to this PR:
|
898598b
to
af11bcb
Compare
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.
Great change, thanks! Since it's more of a mistake that spl-math included a whole a program, can we rename the program bit instead?
libraries/math-utils/Cargo.toml
Outdated
@@ -0,0 +1,19 @@ | |||
[package] | |||
name = "spl-math-utils" |
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.
Can we have this crate be spl-math
and change the one with the program to spl-math-example
?
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.
Done. Set the spl-math version back to 0.3 and set spl-math-example version to 0.1
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.
Thanks!
#### Problem The current spl-stake-pool crate doesn't always work due to its dependency on spl-math which still uses the v1 Solana crates. #### Summary of changes Since the spl-math dependency wasn't actually needed, it was removed in solana-labs#7421. So just to get a new patch release out, downgrade the local dependencies. This will fail CI, but after it lands we can tag the release, and revert this PR.
#### Problem The current spl-stake-pool crate doesn't always work due to its dependency on spl-math which still uses the v1 Solana crates. #### Summary of changes Since the spl-math dependency wasn't actually needed, it was removed in #7421. So just to get a new patch release out, downgrade the local dependencies. This will fail CI, but after it lands we can tag the release, and revert this PR.
Crates that are using
spl-math
as a library don't need the parts that usesolana_program
.This PR pulls the math parts into a separate
spl-math-utils
crate and updatesspl-token-swap
to use that instead ofspl-math
. That's the only SPL crate that usesspl-math
.This PR also removes
spl-math
from thespl-stake-pool
deps butspl-stake-pool
wasn't usingspl-math
in the first place