Definitely doable there even exists a tutorial https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials But I'm kinda sceptical, since there is a backtrace done before we even do a heap for the kernel