smart-cache-macro 0.2.0

Procedural macros for smart-cache
Documentation
1
2
3
4
5
6
7
8
9
10
11
use smart_cache_macro::cached;

#[cached]
fn unit(s: String) -> String {
    s
}

fn main() {
    let result = unit("hello".to_string());
    assert_eq!(result, "hello");
}