Of all the formats that Rust can serialize to, which format is easiest to manipulate WITHOUT USING RUST.
I’m developing my Rust program. I have a bunch of structs, call them S1. I serialize some state to file, state_with_s1.blah .
The, I realize my structs S1 aren’t quite the right type, so I use S2 instead, which is kinda like S1 but not identical.
Now, I need an easy way to transform “state_with_s1.blah” into “state_with_s2.blah” so I can read the state back in to my new program.
So far the best solution seems to be:
- serialize data from Rust to sqlite3
- when going from S1 to S2, just use SQL to add/drop columns / compute new values
- read data back from sqlite3
However, if there are easy to use solutions via json or other formats, I would like to lear about those too.