Releases: hit-box/hitbox
Releases · hit-box/hitbox
hitbox v0.2.4
Added
- Re-export
DisabledOffload,Offload, andserdefromhitbox-core— derive macros now resolve all types throughhitbox::(#252)
hitbox-fn v0.2.1
Added
#[cached]functions can now be called with.awaitdirectly without cache configuration — acts as a transparent passthrough to the underlying function (#252)
hitbox-derive v0.2.1
Fixed
- Derive macros now emit
hitbox::paths instead ofhitbox_core::— users no longer needhitbox-coreas a direct dependency (#252)
Added
IntoFuturepassthrough for unconfigured#[cached]functions —cached_fn(args).awaitworks without cache configuration, calling the underlying function directly (#252)
hitbox v0.2.3
Fixed
- Correct
stalefield documentation — it is time from cache write until entry becomes stale, not a window after TTL - Remove arbitrary 5s default TTL from
EnabledCacheConfig— default is nowNone(cache indefinitely), consistent withPolicyConfigBuilderandEntityPolicyConfig
hitbox v0.2.2
Fixed
- Replace
wait_all()busy-wait loop withNotify-based wakeup to avoid burning CPU (#210) - Use
DashMap::entry()to prevent TOCTOU race in offload deduplication check (#214) OffloadManager::registernow enforces themax_concurrent_taskslimit (#209)
Full Changelog: hitbox-v0.2.1...hitbox-v0.2.2
hitbox-redis v0.2.1
Fixed
- Use
PEXPIRE(milliseconds) for writes to matchPTTLread precision, preventing TTL truncation (#212)
Full Changelog: hitbox-redis-v0.2.0...hitbox-redis-v0.2.1
hitbox-http v0.2.1
Fixed
- Fall back to body hash on JSON parse failure in jq extractor to avoid cache key collisions (#211)
- Return errors instead of silent defaults in rkyv deserialization for HTTP version, status code, and headers (#213)
Full Changelog: hitbox-http-v0.2.0...hitbox-http-v0.2.1
hitbox-fn v0.2.0
Added
- Initial release
Function memoization for the Hitbox caching framework. Provides #[cached] macro, Cache builder, Arg/Skipped/Args wrappers, KeyExtract trait, and FnExtractor/FnUpstream adapters.
Full Changelog: https://github.com/hit-box/hitbox/commits/hitbox-fn-v0.2.0
hitbox-feoxdb v0.2.1
Fixed
- Eliminate TOCTOU race in
removeby using a single atomicdeletecall (#216)
Full Changelog: hitbox-feoxdb-v0.2.0...hitbox-feoxdb-v0.2.1
hitbox-derive v0.2.0
Added
#[cached]proc macro for transparent async function memoization (#203)#[derive(KeyExtract)]derive macro for automatic cache key extraction from structs (#203)#[derive(CacheableResponse)]derive macro for cache-aware response types with skippable fields (#203)
Full Changelog: hitbox-derive-0.1.1...hitbox-derive-v0.2.0