Skip to content
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

Use 'armv6k-nintendo-3ds' rustc tier 3 target #3

Open
vivlim opened this issue Dec 2, 2021 · 6 comments
Open

Use 'armv6k-nintendo-3ds' rustc tier 3 target #3

vivlim opened this issue Dec 2, 2021 · 6 comments

Comments

@vivlim
Copy link
Owner

vivlim commented Dec 2, 2021

https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-3

This will require updating the fork

@AzureMarker
Copy link

AzureMarker commented Dec 4, 2021

FYI I'm experimenting with updating this to a recent Rust version in my free time (so no guarantees 😄). Hoping to have a more maintainable std patch (possibly based on dev/combine-horizon-unix) along with using the new built-in rustc target to make keeping up to date and getting started easier.

@AzureMarker
Copy link

FYI I was experimenting with Cargo's unstable build-std feature and found that this technically would build std without Xargo:

__CARGO_TESTS_ONLY_SRC_ROOT="$(pwd)/rust-3ds-fork" cargo -Z build-std=std,panic_abort build --target armv6k-nintendo-3ds

(note: using panic_abort since I haven't gotten unwinding support figured out yet locally)

But that's using an internal flag. Link to the code: https://github.com/ehuss/cargo/blob/dea587a61c6147e13e9c161811a72578b64ac121/src/cargo/core/compiler/standard_lib.rs#L189

@vivlim
Copy link
Owner Author

vivlim commented Dec 7, 2021

cool! it's been quite a while since I've looked at this, but being able to build without xargo would be cool. earlier on i spent a while trying to get build-std working but eventually gave up.

let me know if you have any questions that I might be able to help with 👍

@ian-h-chamberlain
Copy link

ian-h-chamberlain commented Dec 14, 2021

Hi, I just found this repo a few days ago and it looks very nice!

I did a little looking around to see what else is going on in the ecosystem since the new target was added fairly recently, and found this alternative approach by the author of the PR adding the target to rustc. It looks like they are using a custom std of their own and working toward cargo support with build-std based on the invocation https://github.com/Meziu/cargo-3ds/blob/master/src/main.rs#L115

@Meziu I'm not sure what the status of your project(s) are, but it seems like there are some common goals with this repo, so perhaps some collaboration could benefit both projects? ctru-rs seems mostly inactive these days, but perhaps the "proper std" approach makes more sense in the long run anyway (I think one of the ctru-rs maintainers mentioned something like this).

FWIW, I know this is just kind of a random comment out of the blue but I would also be interesting in helping out if it seems like there's something I can do! Just thought it might be a good starting point to make people aware of other projects in the space in case there is a good opportunity to work together 😃

@Meziu
Copy link

Meziu commented Dec 15, 2021

Oh wow, I didn’t receive the notification about it this issue in my inbox. I already have a working std I’m thinking about pushing into Rust’s tree. I’m just trying to get networking done and for my PR in libc to get pushed. If you guys want to help out, you can open an issue in any of my rust3ds related repos.

Also, other people have contacted me to help out/interested in the project. Sadly I'm stuck with 2480 since the team behind libc seems busy(?). If you want to see updates faster, maybe bumping it could help it go through the process faster.

Anyways, my main repos are:
rust horizon fork
ctru-rs
libc fork
cargo-3ds a build tool using build-std and none of that xargo crap

There are a couple of issues in them, but my main worry is to get networking done before the std PR. Contact me in an issue in either rust-horizon or ctru-rs if you want to help out directly. @vivlim @ian-h-chamberlain @AzureMarker

@vivlim
Copy link
Owner Author

vivlim commented Apr 15, 2023

i lost interest in this/was busy for a couple years but it's really cool to see the progress that you've been making since then in the upstream rust3ds org! looking forward to trying it sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants