hitbox-fn 0.2.1

Function memoization for hitbox caching framework
Documentation
#[test]
fn compile_fail() {
    let t = trybuild::TestCases::new();

    // Feature-independent tests
    t.compile_fail("tests/compile_fail/sync_fn.rs");
    t.compile_fail("tests/compile_fail/self_method.rs");
    t.compile_fail("tests/compile_fail/lifetime_params.rs");
    t.compile_fail("tests/compile_fail/skip_unknown_param.rs");

    // CacheableResponse tests produce different errors with rkyv_format
    #[cfg(not(feature = "rkyv_format"))]
    {
        t.compile_fail("tests/compile_fail/cached_field_no_clone.rs");
        t.compile_fail("tests/compile_fail/skip_field_no_default.rs");
    }
    #[cfg(feature = "rkyv_format")]
    {
        t.compile_fail("tests/compile_fail/cached_field_no_clone_rkyv.rs");
        t.compile_fail("tests/compile_fail/skip_field_no_default_rkyv.rs");
    }
}