Meziu / rust-horizon

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
3 stars 1 forks source link

Enable `getrandom` on horizon #7

Closed ian-h-chamberlain closed 2 years ago

ian-h-chamberlain commented 2 years ago

This requires https://github.com/Meziu/libc/pull/3 and https://github.com/Meziu/rust-linker-fix-3ds/pull/8, which in turn means it probably requires a revert of https://github.com/Meziu/rust-horizon/pull/5.

This enables using std::collections::HashMap without runtime panicking, as long as the program calls ctru_sys::psInit() before trying to create one. I plan to open a PR to ctru-rs to create a wrapper API for Ps to make that a little nicer.

AzureMarker commented 2 years ago

I think this has been superseded by https://github.com/Meziu/rust-horizon/commit/bbaf4bfbdb91c768e86a4bbd8222474279fe9709

ian-h-chamberlain commented 2 years ago

Yep, looks like the only difference is formatting / Cargo.lock, which can be resolved separately. Closing.