-
Notifications
You must be signed in to change notification settings - Fork 342
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 program-error crate #2413
Conversation
d8edd16
to
d053b39
Compare
The Firedancer team maintains a line-for-line reimplementation of the |
af4f8ac
to
f693775
Compare
f693775
to
d6accd8
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! Just the one missing space, but it looks like rustfmt doesn't care. @yihau can you accept solana-program-error
?
@@ -5,22 +5,20 @@ | |||
//! [`bpf_loader`]: crate::bpf_loader | |||
|
|||
extern crate alloc; | |||
pub use solana_program_error::ProgramResult; |
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.
Gosh, this makes so much more sense
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 agree with your approach of not making this no-std -- if we ever want to do it, we can introduce a breaking change later.
Co-authored-by: Jon C <[email protected]>
|
* extract program-error crate * remove `default-features = false` that doesn't do anything * make serde optional in program-error crate * update lock file * remove thiserror from program-error crate * update lock file * move ProgramResult definition to program-error crate * unused import * fix features * missing whitespace Co-authored-by: Jon C <[email protected]> --------- Co-authored-by: Jon C <[email protected]>
Problem
solana_program::program_error
needs to be made available outside solana-programThis branches off #2405 so that needs to be merged first.
Summary of Changes