mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-09 17:19:45 -04:00
52872521d4
# Description of Changes Adds `Deserialize::validate` and all the friends necessary to make that work. The point of this is to enable allocation-less validation of input in some data format, in particular BSATN, against some expected type, in particular an `AlgebraicValue` at an `AlgebraicType`. This is extracted from https://github.com/clockworklabs/SpacetimeDB/pull/4311 and is used there to convert raw BSATN to `BytesKey` without constructing the composite `AlgebraicValue` just for validation only to throw it away immediately. # API and ABI breaking changes None # Expected complexity level and risk 2 # Testing TODO: tweak existing SATS roundtrip tests to also check validation. --------- Co-authored-by: Noa <coolreader18@gmail.com>