Starts adding rust in the toolchain

This commit is contained in:
2025-11-12 22:05:25 +01:00
parent 7bb8b993ae
commit 8326c1f169
11 changed files with 104 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
[package]
name = "hello_rust"
version = "0.1.0"
edition = "2024"
[dependencies]
fpga_lib = { path = "../fpga_lib" }

View File

@@ -0,0 +1,18 @@
#![no_std]
#![no_main]
use core::arch::asm;
use fpga_lib::panic_handler;
panic_handler! {}
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
unsafe {
asm! {
"li x31, 0xdead0"
}
}
loop {}
}