Hacking Homebrew [Release] libnds-rs - Rust for the Nintendo DS

  • Thread starter Thread starter Pikachuk
  • Start date Start date
  • Views Views 6,863
  • Replies Replies 15
  • Likes Likes 7

Pikachuk

SeleDreams
Member
Joined
Mar 19, 2016
Messages
784
Reaction score
235
Trophies
1
Age
25
Location
Bordeaux
XP
859
Country
France
Hey everyone.
I've recently been working on porting rust to the nintendo DS for one of my projects.
I ended up getting it working so I felt like releasing it publicly for everyone.
you will need to have BlocksDS installed with your environment variables set to use it.
https://github.com/SeleDreams/cargo-nds

at the moment this is a wip, so homebrews made with it will compile and run on the DS, however, only an unsafe access to the raw rapper of the C api is available. I plan to work on providing a safe wrapper that is more natural to use from rust
I hope this will be useful to others

 

Attachments

  • 1675945560912.png
    1675945560912.png
    1.3 MB · Views: 318
Last edited by Pikachuk,
Super cool! Really interesting to see a such a new programming language on such an old console. Is the memory overhead any different compared to C/C++?
 
Idk I think halo is better
What? :wtf: Mine was a joke, a play on words. I was referring to real rust, which forms on iron by oxidation. Instead, I do not understand this reference to Halo, which if I am not mistaken is an FPS game, impossible on DS. :unsure:
 
Update :
I did a pretty big update of the implementation of rust for the DS and switched it to use BlocksDS instead of DevKitPro as it is more efficient and uses clearly licensed dependencies.
The new system is better and also easier to use.
Here is the link with instructions https://github.com/SeleDreams/cargo-nds
Post automatically merged:

Here's a video that shows how to use it
 
Last edited by Pikachuk,
How's the performance vs. standard C BlocksDS? I wonder what could be effectively be done with this to be honest...

The Super Mario Galaxy DS is the most impressive thing I've seen so far, and I wonder if rust would be adequate for producing anything similar
 
How's the performance vs. standard C BlocksDS? I wonder what could be effectively be done with this to be honest...

The Super Mario Galaxy DS is the most impressive thing I've seen so far, and I wonder if rust would be adequate for producing anything similar
The performance should be pretty similar overall.
Rust compiles like C to machine code and under the hood, the same libc is used
 
Hey! I am pretty interested in this project! Do you have any examples for like, interacting with the filesystem or rendering to the screen?
 

Site & Scene News

Popular threads in this forum