Creating a Homebrew 3ds Program With Rust (Windows)
fekie July 24, 2024 #3ds #rust #embedded #guideCreating a 3ds Project
- Download the graphical installer for devkitPro here. Run the updater and have it install everything. Preferably, install it to
C:\devkitPro
(the default path) so the rest of the guide is easier to follow. It will take a bit to install. - Set environment variable
$DEVKITPRO
toC:\devkitPro
. Set environment variable$DEVKITARM
toC:\devkitPro\devkitARM
. Set environment variable$DEVKITPPC
toC:\devkitPro\devkitPPC
. - Make sure that Rust is installed, as
cargo
is needed to install toolchains and create the project. - To install cargo-3ds, run the following
If you run into errors, make sure rust is updated and on stable. 5. Switch to rust nightly with
- You may need to run
before running the cargo 3ds command. Just follow what it tells you to do if a toolchain error comes up. 7. Create a new project with
- Make sure LLVM is installed. You can do this by downloading the Windows executable from here. Make sure that when you install it, you check the box that creates a path for all users.
- Add
C:\devkitPro\devkitARM\bin
to your PATH so that your system can find the linkers. - Make sure that
smdhtool
is part of your path by addingC:\devkitPro\tools\bin
to your PATH. - Create a new terminal window.
cd
into the directory and run
and you have successfully created a 3ds project in Rust!