Homebrew WIP Code Swich Homebrew using Rust

igor1201

Member
OP
Newcomer
Joined
May 21, 2018
Messages
7
Trophies
0
Age
30
XP
132
Country
Brazil
Hello guys,

I've recently started hacking with Homebrew on Switch (using libnx) and thought it'd be good if we could use Rust (rust-lang . org) to create our projects.
So I've been gluing together a hacky approach to compile Rust code to Switch.

Hope it is useful to someone!

github . com / Igor1201 / rusted-switch

(and of course, I can't post links yet)
 

ShroomKing

Somebody
Member
Joined
Mar 3, 2017
Messages
470
Trophies
0
Age
29
Location
in bed
XP
1,971
Country
United States
thanks! this is great.

At this point people can code apps for switch in Python, Javascript, Lua and Rust!(and C of course) Which i hope will make even more people join the scene to make homebrew.
 

roblabla

New Member
Newbie
Joined
Feb 26, 2018
Messages
4
Trophies
0
Age
28
XP
106
Country
France
So I'm the creator of megaton-hammer, a Rust homebrew library for the Nintendo Switch. We have some very ambitious goals: We want a full-rust Homebrew development environment, with 0 dependency on C code or a C compiler. This means that Megaton-Hammer doesn't wrap libnx or libtransistor, instead it is its own parallel library, with its own crt0, runtime, etc...

We already have a rust stdlib port, based on rust 1.26. It supports network, stdio, has a WIP branch containing threading and mutexes, and filesystem is coming very soon. I've been trying to get graphics working for a while but... I've been pretty busy ^^'. We also have our own custom allocator (which is not ralloc because ralloc has been failing on me :( ).

If anyone wants to help me work on this, I'd love some maintainers. Feel free to PM me on discord (I'm roblabla#8145, you can find me in many discords like ReSwitched, Yuzu, RyujiNX, etc...).

It's time, folks. The Rust Evangelism StrikeForce needs your help! :P
 

igor1201

Member
OP
Newcomer
Joined
May 21, 2018
Messages
7
Trophies
0
Age
30
XP
132
Country
Brazil
This doesn't seems like actual code for me , more like a placeholder
Yes, it aims to be a template to a rust project on switch.

So I'm the creator of megaton-hammer, a Rust homebrew library for the Nintendo Switch. We have some very ambitious goals: We want a full-rust Homebrew development environment, with 0 dependency on C code or a C compiler. This means that Megaton-Hammer doesn't wrap libnx or libtransistor, instead it is its own parallel library, with its own crt0, runtime, etc...

We already have a rust stdlib port, based on rust 1.26. It supports network, stdio, has a WIP branch containing threading and mutexes, and filesystem is coming very soon. I've been trying to get graphics working for a while but... I've been pretty busy ^^'. We also have our own custom allocator (which is not ralloc because ralloc has been failing on me :( ).

If anyone wants to help me work on this, I'd love some maintainers. Feel free to PM me on discord (I'm roblabla#8145, you can find me in many discords like ReSwitched, Yuzu, RyujiNX, etc...).

It's time, folks. The Rust Evangelism StrikeForce needs your help! :P
That's amazing! I've been looking for switch homebrew with rust but didn't find your repo
I'm really new to Rust/low-level development, but the possibility to code non-C/C++ to switch got my attention.
I'll definitely take a look into megaton-hammer (nice name, btw) and separate a time to learn, thanks for the tip!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
    +1
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
    +1
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
    +1
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
  • BakerMan @ BakerMan:
    guys, should i change my pfp to one of these or keep it the same?
    iu

    iu

    (i guess i could change it to one of my other pfps too, but i just want to see what you guys think first)
  • SylverReZ @ SylverReZ:
    @BakerMan, Up to you.
  • BakerMan @ BakerMan:
    smug sonic time lmao
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Chronic The HempHog
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=EtapU5nI6G4