-
Notifications
You must be signed in to change notification settings - Fork 200
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
Extract reserved-account-keys and sdk-ids crates #3141
base: master
Are you sure you want to change the base?
Extract reserved-account-keys and sdk-ids crates #3141
Conversation
The Firedancer team maintains a line-for-line reimplementation of the |
6e6c08f
to
2bb83ba
Compare
This might be cleaner as two separate crates? One that just contains the ID declarations (perhaps This would avoid having to do all the feature and target_os stuff that ended up being uglier than I expected. @joncinque thoughts? |
a220745
to
b2ebbdd
Compare
I see there is already a deprecated |
0fa703a
to
bfb99a2
Compare
31f8d8c
to
d607510
Compare
Ok ended up having no choice but to make it two crates because there was a circular dependency when everything was in reserved-account-keys |
c44c07a
to
ab74ae8
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.
Looks great to me! Just one little point for stake::program
@@ -0,0 +1,19 @@ | |||
[package] | |||
name = "solana-sdk-ids" |
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.
I went back and forth on other possible names for the crate, but solana-sdk-ids
seems like the clearest
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.
Out of curiosity, does this crate negatively impact build times on the crates that re-export it? Or is the macro quick?
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.
Based on running cargo build -r
on solana-sysvar-id
ten times each for this branch and the master branch, the increase in build time is 0.05 seconds on my machine. And that's the worst case because solana-sysvar-id gets blocked waiting for solana-sdk-ids to compile
4b84eeb
to
8d342e9
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.
Looks good to me! @yihau can you accept solana-sdk-ids
and solana-reserved-account-keys
?
8d342e9
to
082ee39
Compare
Problem
solana_sdk::reserved_account_keys
blocks moving outsolana_sdk::transaction
Summary of Changes
This branches off #3140 so that needs to be merged first