#![no_std]#![no_main]externcrate alloc;usealloc::vec::Vec;useluminal::Runtime;// This example demonstrates using Luminal in a no_std environment
// Note: This requires the alloc crate for heap allocation
#[no_mangle]pubextern"C"fnno_std_test()->i32{let rt =Runtime::new().unwrap();let handle = rt.spawn(async {letmut results =Vec::new();for i in0..10{
results.push(i *2);}
results.iter().sum::<i32>()});
rt.block_on(handle)}#[cfg(not(feature ="std"))]// Dummy panic handler for no_std
#[panic_handler]fnpanic(_info:&core::panic::PanicInfo)->!{loop{}}