Closed jerrykingxyz closed 23 hours ago
Name | Link |
---|---|
Latest commit | b0ab1c7792c1d547b538ec418d7444a30e8aa414 |
Latest deploy log | https://app.netlify.com/sites/rspack/deploys/67442cc74cd71e0008b4607a |
Comparing jerry/cacheable
(b0ab1c7) with main
(eb12150)
✅ 1
untouched benchmarks
Summary
This PR will:
Inline
wrapper type, which can convert the cacheable data reference. Note that since theInline
does not implement the deserialize method, it cannot be used withfrom_bytes
.[cacheable]
struct Data { block1: String }
[cacheable]
struct DataRef<'a> {
[cacheable(with=Inline)]
}
let data = Data { block1: "block1".into() } let data_ref = DataRef { block1: &data.block1 } assert_eq!(to_bytes(&data, &()), to_bytes(&data_ref, &()));
Checklist