Repository navigation
Releases
Releases · bimtauer/rdb-rs
v0.4.0
Added
- RDB versions 10-13: Redis 7.0 up to 8.6 (#8)
- Hashes with field TTLs (Redis 7.4+) are decoded; the per-field TTLs are not reported
- Streams, module values (e.g. RedisJSON), Lua functions, cluster slot info and key metadata are
skipped, so dumps containing them parse RdbDecoder::newis public for iterating over items, withRdbDecoder::version()RdbValueis exported from the crate root- Error variants
InvalidHeader,UnsupportedVersionandUnsupported - Python: type hints,
RdbDecoder.version,pathlib.Patharguments, abi3 wheels for CPython 3.10+
and free-threaded 3.14t wheels - Redis container tests for 8.0, 8.2, 8.4 and 8.6, writing streams, functions and field TTLs
- Fixtures from Redis 7.4, Redis 8.6 and redis-stack dumps
Fixed
- Any Redis 7+ dump containing a Lua function failed with
Unknown encoding type: 245 - Streams panicked (
todo!()) - Negative 13-bit and all 24-bit listpack integers were decoded wrongly (e.g.
-1as65535,
100000as390) - A key's expiry was applied to every following key without one
- Key filters (
--type,--keys,--databases) failed on several encodings and emitted spurious
database switches for skipped keys - 64-bit lengths (
0x81) were read as 32-bit - Seconds-precision expiry (
EXPIRETIME, RDB < 3) was read big-endian - Truncated files were reported as complete instead of failing
- Invalid UTF-8 values containing
"or\produced invalid JSON - Corrupt input panicked or could trigger huge allocations; it now returns an error
- Python: files were read unbuffered (about 10x slower); any open failure raised
FileNotFoundError - Python:
rdb-pydeclaredcffiandmaturinas runtime dependencies
Changed
RdbParserBuilder::buildreturnsRdbResultinstead of panicking- The CLI prints errors to stderr and exits with code 1 instead of panicking
- Iteration stops after the first error
- Rust edition 2024, minimum Rust version 1.87; pyo3 0.29
Removed
- Unmaintained
rustc-serializedependency - Unused
types::EncodingType utils/PKGBUILD(pointed at the archived repository and a removed Makefile)