andrewdavidmackenzie / pigg

Raspberry Pi GPIO GUI
Apache License 2.0
207 stars 8 forks source link

Think about backwards compatibility of config format #468

Open andrewdavidmackenzie opened 1 month ago

andrewdavidmackenzie commented 1 month ago

We serialize and serialize the Config struct to file, for use in loading/saving configs.

But the struct may change, in ways breaking.backwards.conpatibility with saved configs from older versions.

Think about how to handle that and what guarantees we can give, or what support for migrating versions we might provide.

See if any crates available to help.

Version number of struct definition, that is serialized along with it? Manual compatibility version in struct?