-
Notifications
You must be signed in to change notification settings - Fork 76
program-entrypoint: Add no_std
attribute
#131
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
base: master
Are you sure you want to change the base?
program-entrypoint: Add no_std
attribute
#131
Conversation
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 – just one nit.
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, thanks!
Adding |
Good point! When the cc: @joncinque |
Need to consider the potential issue with the panic handler.
I believe my new panic implementation will solve this issue: #142 |
If I understand correctly, since the new panic handler doesn't use @febo is the solution to do the same thing as in pinocchio? Ie
|
Unfortunately no. When you build your program as There is a bit more comment on this here: #12 (comment) |
This is the fallback for cargo test/bench/clippy, since most of the time they will link the We need to offer a "nostd" panic handler, which sets a Anyone can set their own one, since you really need to be explicit to make your program In a way, having the crate as |
What's the best way to facilitate that? Is it something we do in this PR by including a panic handler along with an allocator? |
i'd prefer this approach. However, we have to be sure there is no place where |
Problem
Currently the
program-entrypoint
crate isno_std
"friendly" but does not have the crate attribute and used reexports fromcore
andalloc
instd
Solution
core
andalloc
instead of reexports fromstd