-
Notifications
You must be signed in to change notification settings - Fork 9
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
support std
crate in VM programs.
#654
Comments
Perhaps see how Risc-Zero does it. |
They maintain their own fork for Rust std lib. See https://github.com/risc0/rust/blob/risc0/library/panic_abort/src/lib.rs#L39 |
https://github.com/0xmozak/rust/tree/mozak This fork of rust may help with this issue. |
if in future we ever need to have native run with no_std then we can use my attached patch for starting guest related changes. |
For our custom target some operations from
std
crate is not supported. For example https://github.com/rust-lang/rust/blob/master/library/std/src/sys/unsupported/thread_local_key.rs#L5Above code is used in panic_handler and itself panics creating infinite loop.
This issue is created to solve issues like above so that VM programs can use
std
crate.The text was updated successfully, but these errors were encountered: