A library for building full PSP modules, including both PRX plugins and regular homebrew apps.
#![no_std]
#![no_main]
psp::module!("sample_module", 1, 1);
fn psp_main() {
psp::dprintln!("Hello PSP from rust!");
}
See examples
directory for sample programs.
-
core
support - PSP system library support
-
alloc
support -
panic = "unwind"
support - Figure out a strategy for the VFPU
- Migrate to LLVM-based linker
- Rewrite
psp-prxgen
in rust?
This crate breaks on debug builds. Likely due to the ABI mapper
implementation. This should be fixable. For now build with --release
.
If you get an error like this:
error[E0460]: found possibly newer version of crate `panic_unwind` which `psp` depends on
--> src/main.rs:4:5
|
4 | use psp::dprintln;
| ^^^
|
= note: perhaps that crate needs to be recompiled?
Simply clean your target directory and it will be fixed:
$ cargo clean