jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.58k stars 95 forks source link

cache_proc_macro version was not increased together with 0.21.0 release #66

Closed wgr1984 closed 3 years ago

wgr1984 commented 3 years ago

Seem cache_proc_macro module version was not increased therefore not containing necessary changes regarding timed caches.

#[cached(size=10, time=10)]

does not compile printing out the following error:

error: custom attribute panicked
   --> src/repo/mod.rs:135:1
    |
135 | #[cached(size=10, time=10)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: message: cache types (unbound, size, time, or type and create) are mutually exclusive
jaemk commented 3 years ago

woops, taking a look now

jaemk commented 3 years ago

ok, released cached_proc_macro=0.5.0 and cached=0.21.1 referencing the updated macro crate