1 2 3 4 5 6 7 8 9 10 11 12
use hitbox_derive::cached; struct Service; impl Service { #[cached] pub async fn method(&self, x: i64) -> i64 { x * 2 } } fn main() {}