News for hackers. Stuff that matters.

QuartzLibrary

Show HN: stable_pydantic – catch Pydantic schema breakage in two tests

https://github.com/QuartzLibrary/stable_pydantic

Hi HN!If you persist your pydantic models (db, cache, queues, config, ...), a schema change can quietly break deserialization.To help with this, stable_pydantic:- tests for backward compatibility (new client reads old data)- is easy to run on CI (just normal tests)- stores schemas as Python files (easy to review/diff)- optionally, tests for forward compatibility (old client reads new data)-...

( Read More... | no comments | on HN )
Re:Rust Dependencies Scare Me on Saturday May 10, 2025 @06:07AM (#43944483)
FYI: `#[forbid(_)]` cannot be bypassed by the affected code (without a never-to-be-stabilised nightly feature meant to be used only in `std` macros).

https://doc.rust-lang.org/rustc/lints/levels.html