Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

example tutorial for Rust on the vita SDK? #3

Open
ajstrand opened this issue Feb 15, 2021 · 3 comments
Open

example tutorial for Rust on the vita SDK? #3

ajstrand opened this issue Feb 15, 2021 · 3 comments

Comments

@ajstrand
Copy link

I'm new to using the vita SDK, but I've dabbled with Rust a bit for web dev type stuff.
Is Rust on the vita still something that's possible/supported?

It looks like some these repos havent been updated since 2018 or so, so I wasnt sure if the project was dead.

@zetanumbers
Copy link
Contributor

I was studying psp-toolchain for rust lately and wanted to do kinda the same thing for vita. If you would like to contribute I believe we could talk at HENkaku server. I am zetanumbers#0286. Maybe mods would create a new channel for this.

I will say that i managed to build example, even by just using -Z build-std and without xargo.

@ajstrand
Copy link
Author

Yeah, I happened to find the psp rust toolchain and it's impressive what they've done. I'll reach out to on the Henkaku server, since I've already joined there.

@althonos
Copy link
Member

Hi @ajstrand ,

this whole thing was an experiment with embedded Rust and the only ARM platform I had at the time, but unfortunately I don't have my PS Vita with me currently as I'm living abroad, so I can't spend as much time as the psp-rust people on this.

First you need the Vita SDK because this is still using the linker and stub files from them. Then, you should have a look at the example in psp2-sys repo. If you can get it to compile, you can then move on to looking at the C examples in the Vita SDK samples. The hello_rust_world example is basically the hello_word from there, transpiled to Rust and using cargo-make to compile instead of CMake.

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

No branches or pull requests

3 participants