Starts adding rust in the toolchain
This commit is contained in:
6
bench/programs_rust/fpga_lib/Cargo.toml
Normal file
6
bench/programs_rust/fpga_lib/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "fpga_lib"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
11
bench/programs_rust/fpga_lib/src/lib.rs
Normal file
11
bench/programs_rust/fpga_lib/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
#![no_std]
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! panic_handler {
|
||||
() => {
|
||||
#[panic_handler]
|
||||
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user