Macro comptime

Source
comptime!() { /* proc-macro */ }
Expand description

Mark the contents of this macro as compile time values, turning off all expansion for this code and using it verbatim

ยงExample

#use cubecl_macros::cube;
#fn some_rust_function(a: u32) -> u32 {}
#[cube]
fn do_stuff(input: u32) -> u32 {
    let comptime_value = comptime! { some_rust_function(3) };
    input + comptime_value
}