diff --git a/libcrux-nrf52840/src/bin/mldsa.rs b/libcrux-nrf52840/src/bin/mldsa.rs index 3134114..1fc310d 100644 --- a/libcrux-nrf52840/src/bin/mldsa.rs +++ b/libcrux-nrf52840/src/bin/mldsa.rs @@ -1,7 +1,6 @@ #![no_main] #![no_std] -use cortex_m::peripheral::Peripherals; use libcrux_nrf52840 as board; // global logger + panicking-behavior + memory layout extern crate alloc; @@ -15,7 +14,7 @@ static HEAP: Heap = Heap::empty(); #[cortex_m_rt::entry] fn main() -> ! { use libcrux_iot_testutil::*; - + // Initialize the allocator BEFORE you use it { use core::mem::MaybeUninit; @@ -23,7 +22,7 @@ fn main() -> ! { static mut HEAP_MEM: [MaybeUninit; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE]; unsafe { HEAP.init(addr_of_mut!(HEAP_MEM) as usize, HEAP_SIZE) } } - + // set up the test config let test_config = TestConfig { platform: platform::CortexM, diff --git a/libcrux-nrf52840/src/bin/mlkem.rs b/libcrux-nrf52840/src/bin/mlkem.rs index e76f127..4ae7228 100644 --- a/libcrux-nrf52840/src/bin/mlkem.rs +++ b/libcrux-nrf52840/src/bin/mlkem.rs @@ -1,7 +1,6 @@ #![no_main] #![no_std] -use cortex_m::peripheral::Peripherals; use libcrux_nrf52840 as board; // global logger + panicking-behavior + memory layout extern crate alloc;